Automattic\WooCommerce\Vendor\League\Container\ServiceProvider
AbstractServiceProvider{}
Хуков нет.
Использование
$AbstractServiceProvider = new AbstractServiceProvider(); // use class methods
Методы
- ERROR: no method name found on line ``
- ERROR: no method name found on line `}`
- public getIdentifier()
- ERROR: no method name found on line ``
- public provides(string $alias)
- ERROR: no method name found on line ``
- public setIdentifier(string $id)
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
Код AbstractServiceProvider{} AbstractServiceProvider{} WC 7.3.0
abstract class AbstractServiceProvider implements ServiceProviderInterface { use ContainerAwareTrait; /** * @var array */ protected $provides = []; /** * @var string */ protected $identifier; /** * {@inheritdoc} */ public function provides(string $alias) : bool { return in_array($alias, $this->provides, true); } /** * {@inheritdoc} */ public function setIdentifier(string $id) : ServiceProviderInterface { $this->identifier = $id; return $this; } /** * {@inheritdoc} */ public function getIdentifier() : string { return $this->identifier ?? get_class($this); } }