Automattic\WooCommerce\Vendor\League\Container
Container::inflector()
Allows for manipulation of specific types on resolution.
Method of the class: Container{}
No Hooks.
Return
InflectorInterface
.
Usage
$Container = new Container(); $Container->inflector( $type, $callback ) : InflectorInterface;
- $type(string) (required)
- -
- $callback(callable|null)
- -
Default: null
Container::inflector() Container::inflector code WC 8.6.1
public function inflector(string $type, callable $callback = null) : InflectorInterface { return $this->inflectors->add($type, $callback); }