Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Inpsyde
MultilingualPress
Service
Container
extend
Inpsyde\MultilingualPress\Service\Container::extend PHP Method
Container Interface Documentation
Show file
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