Toggle navigation
Hot Examples
ES
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Buscar
Inicio
Inpsyde
MultilingualPress
Service
Container
extend
Inpsyde\MultilingualPress\Service\Container::extend PHP Method
Container Interface Documentation
Mostrar archivo
Open project: inpsyde/multilingual-press
extend()
public
method
Replaces the factory callback with the given name with the given factory callback.
Since:
3.0.0
public
extend
(
string
$name
,
callable
$new_factory
) :
static
$name
string
The name of an existing factory callback.
$new_factory
callable
The new factory callback.
return
static
Container instance.
public function extend($name, callable $new_factory);
Container
bootstrap
extend
lock
share