$_stack
$_stack : array<mixed,\Cake\Routing\DispatcherFilter>
Stack of middleware to apply to dispatchers.
A factory for creating dispatchers with all the desired middleware connected.
$_stack : array<mixed,\Cake\Routing\DispatcherFilter>
Stack of middleware to apply to dispatchers.
add(string|\Cake\Routing\DispatcherFilter $filter, array $options = array()) : \Cake\Routing\DispatcherFilter
Add a new middleware object to the stack of middleware that will be executed.
Instances of filters will be re-used across all sub-requests in a request.
string|\Cake\Routing\DispatcherFilter | $filter | Either the classname of the filter or an instance to use. |
array | $options | Constructor arguments/options for the filter if you are using a string name. If you are passing an instance, this argument will be ignored. |
create() : \Cake\Routing\Dispatcher
Create a dispatcher that has all the configured middleware applied.
filters() : array<mixed,\Cake\Routing\DispatcherFilter>
Get the connected dispatcher filters.
_createFilter(string $name, array $options) : \Cake\Routing\DispatcherFilter
Create an instance of a filter.
string | $name | The name of the filter to build. |
array | $options | Constructor arguments/options for the filter. |
When filters cannot be found.