Documentation

MethodNameInflector

Table of Contents

Interfaces

MethodNameInflector
Deduce the method name to call on the command handler based on the command and handler instances.

Classes

ClassNameInflector
Assumes the method is only the last portion of the class name.
HandleClassNameInflector
Assumes the method is handle + the last portion of the class name.
HandleClassNameWithoutSuffixInflector
Returns a method name that is handle + the last portion of the class name but also without a given suffix, typically "Command". This allows you to handle multiple commands on a single object but with slightly less annoying method names.
HandleInflector
Handle command by calling the "handle" method.
InvokeInflector
Handle command by calling the __invoke magic method. Handy for single use classes or closures.

        
On this page

Search results