Automattic\WooCommerce\Vendor\League\Container
Container::inflector() public WC 1.0
Allows for manipulation of specific types on resolution.
{} It's a method of the class: Container{}
No Hooks.
Return
InflectorInterface.
Usage
$Container = new Container(); $Container->inflector( $type, $callback ) : InflectorInterface;
- $type(string) (required)
- -
- $callback(callable)
- -
Code of Container::inflector() Container::inflector WC 5.0.0
public function inflector(string $type, callable $callback = null) : InflectorInterface
{
return $this->inflectors->add($type, $callback);
}