MCPcopy Create free account
hub / github.com/ccoenraets/backbone-cellar / setMiddleware

Method setMiddleware

tutorial/api/Slim/Route.php:276–285  ·  view source on GitHub ↗

* Set middleware * * This method allows middleware to be assigned to a specific Route. * If the method argument `is_callable` (including callable arrays!), * we directly append the argument to `$this->middleware`. Else, we * assume the argument is an array of callables and merge the array * with `$this->middleware`. Even if non-callables are included in the * arg

( $middleware )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

mapRouteMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected