Skip to content

ideationnet/action-dispatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Action Dispatcher

A PSR-15 "Action Domain Responder" middleware that dispatches to actions resolved by Action Resolver.

Actions are dispatched using an Invoker, such as the one provided by PHP-DI.

Configuration

Actions should resolve to an instance of IdNet\Action where the input, domain, and responder have been set. The dispatcher will use the provided implementation of InvokerInterface to invoke the callables.

'action.example' => object(Action::class)
    ->method('domain', YourDomainClass::class),
    
'input.default' => get(YourDefaultInput::class),
'responder.default' => get(YourDefaultResonder::class),]

'another.action' => object(Action::class)
    ->method('input', OverrideInputClass::class)
    ->method('domain', AnotherDomain::class)
    ->method('responder', CustomResponder::class),

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages