Yoast\WP\Lib\Dependency_Injection

Container_Registry::register()public staticYoast 1.0

Register a container.

Метод класса: Container_Registry{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = Container_Registry::register( $name, $container );
$name(строка) (обязательный)
The name of the container.
$container(ContainerInterface) (обязательный)
The container.

Код Container_Registry::register() Yoast 22.4

public static function register( $name, ContainerInterface $container ) {
	self::$containers[ $name ] = $container;
}