Automattic\WooCommerce\Internal\DependencyManagement\ServiceProviders
AbstractInterfaceServiceProvider::share_with_implements_tags()
Register a shared class in the container and add tags for all the interfaces it implements.
Метод класса: AbstractInterfaceServiceProvider{}
Хуков нет.
Возвращает
DefinitionInterface
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->share_with_implements_tags( $id, $concrete ): DefinitionInterface;
- $id(строка) (обязательный)
- Entry ID (typically a class or interface name).
- $concrete(разное|null)
- Concrete entity to register under that ID, null for automatic creation.
По умолчанию: null
Код AbstractInterfaceServiceProvider::share_with_implements_tags() AbstractInterfaceServiceProvider::share with implements tags WC 9.6.1
protected function share_with_implements_tags( string $id, $concrete = null ): DefinitionInterface { return $this->add_with_implements_tags( $id, $concrete, true ); }