Inflectors
What are inflectors ?
Dependency
Interface
Trait
Description
How to add my own inflectors ?
This will provide access to a new method `register_inflector` which will be able to register inflectors inside the `define` method:class Provider extends AbstractServiceProvider implements HasInflectorInterface {
use InflectorServiceProviderTrait;
public function define() {
$this->register_inflector(MyInterface::class);
}
} Inflector structure
Last updated