Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

using middleware in 'dispatch' event? #92

Closed
@samsonasik

Description

@samsonasik

is it possible to use it in a 'dispatch' event, tried something like this:

$eventManager->attach('dispatch', $sm->get('AuthorizationMiddleware'));

and got the following error:

: Missing argument 2 for Application\Middleware\AuthorizationMiddleware::__invoke() in /Application/Middleware/AuthorizationMiddleware.php on line 7

While the error is argument 2, the argument 1 is an MvcEvent instance.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions