Automattic\WooCommerce\Vendor\League\Container

Container::inflector()publicWC 1.0

Allows for manipulation of specific types on resolution.

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

Хуков нет.

Возвращает

InflectorInterface.

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

$Container = new Container();
$Container->inflector( $type, $callback ) : InflectorInterface;
$type(строка) (обязательный)
-
$callback(callable|null)
-
По умолчанию: null

Код Container::inflector() WC 8.7.0

public function inflector(string $type, callable $callback = null) : InflectorInterface
{
    return $this->inflectors->add($type, $callback);
}