Inpsyde\MultilingualPress\Service\Container::extend PHP Method

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);