Skip to content

Get Controller Class Name in Middleware #1

@neubreed

Description

@neubreed

Thanks for this app .. it's a great project for Slim newbies like myself ..

How do I go about getting the controller name in Middleware?

I've tried the getCallable() method and it's returning a closure object and not the class name of the controller:

$route = $request->getAttribute('route'); $callable = $route->getCallable();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions