CakePHP
  • Documentation
    • Book
    • API
    • Videos
    • Logos & Trademarks
  • Business Solutions
  • Swag
  • Road Trip
  • Team
  • Community
    • Community
    • Team
    • Issues (Github)
    • YouTube Channel
    • Get Involved
    • Bakery
    • Featured Resources
    • Newsletter
    • Certification
    • My CakePHP
    • CakeFest
    • Facebook
    • Twitter
    • Help & Support
    • Forum
    • Stack Overflow
    • IRC
    • Slack
    • Paid Support
CakePHP

C CakePHP 3.8 Red Velvet API

  • Overview
  • Tree
  • Deprecated
  • Version:
    • 3.8
      • 3.8
      • 3.7
      • 3.6
      • 3.5
      • 3.4
      • 3.3
      • 3.2
      • 3.1
      • 3.0
      • 2.10
      • 2.9
      • 2.8
      • 2.7
      • 2.6
      • 2.5
      • 2.4
      • 2.3
      • 2.2
      • 2.1
      • 2.0
      • 1.3
      • 1.2

Namespaces

  • Cake
    • Auth
      • Storage
    • Cache
      • Engine
    • Collection
      • Iterator
    • Command
    • Console
      • Exception
    • Controller
      • Component
      • Exception
    • Core
      • Configure
        • Engine
      • Exception
      • Retry
    • Database
      • Driver
      • Exception
      • Expression
      • Schema
      • Statement
      • Type
    • Datasource
      • Exception
    • Error
      • Middleware
    • Event
      • Decorator
    • Filesystem
    • Form
    • Http
      • Client
        • Adapter
        • Auth
      • Cookie
      • Exception
      • Middleware
      • Session
    • I18n
      • Formatter
      • Middleware
      • Parser
    • Log
      • Engine
    • Mailer
      • Exception
      • Transport
    • Network
      • Exception
    • ORM
      • Association
      • Behavior
        • Translate
      • Exception
      • Locator
      • Rule
    • Routing
      • Exception
      • Filter
      • Middleware
      • Route
    • Shell
      • Helper
      • Task
    • TestSuite
      • Fixture
      • Stub
    • Utility
      • Exception
    • Validation
    • View
      • Exception
      • Form
      • Helper
      • Widget
  • None

Classes

  • Dispatcher
  • DispatcherFactory
  • DispatcherFilter
  • RouteBuilder
  • Router

Traits

  • RequestActionTrait

Class DispatcherFactory

A factory for creating dispatchers with all the desired middleware connected.

Namespace: Cake\Routing
Deprecated:

3.6.0 This class is part of the deprecated dispatcher system. Use Http\Server instead.


Location: Routing/DispatcherFactory.php

Properties summary

  • $_stack protected static
    Cake\Routing\DispatcherFilter[]
    Stack of middleware to apply to dispatchers.

Method Summary

  • _createFilter() protected static deprecated
    Create an instance of a filter.
  • add() public static deprecated

    Add a new middleware object to the stack of middleware that will be executed.

  • clear() public static deprecated
    Clear the middleware stack.
  • create() public static deprecated
    Create a dispatcher that has all the configured middleware applied.
  • filters() public static deprecated
    Get the connected dispatcher filters.

Method Detail

_createFilter() protected static deprecated ¶

_createFilter( string $name , array $options )

Create an instance of a filter.

Parameters
string $name
The name of the filter to build.
array $options
Constructor arguments/options for the filter.
Returns
Cake\Routing\DispatcherFilter
Throws
Cake\Routing\Exception\MissingDispatcherFilterException
When filters cannot be found.

add() public static deprecated ¶

add( string|Cake\Routing\DispatcherFilter $filter , array $options = [] )

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.

Parameters
string|Cake\Routing\DispatcherFilter $filter

Either the classname of the filter or an instance to use.

array $options optional []

Constructor arguments/options for the filter if you are using a string name. If you are passing an instance, this argument will be ignored.

Returns
Cake\Routing\DispatcherFilter

clear() public static deprecated ¶

clear( )

Clear the middleware stack.

create() public static deprecated ¶

create( )

Create a dispatcher that has all the configured middleware applied.

Returns
Cake\Routing\Dispatcher

filters() public static deprecated ¶

filters( )

Get the connected dispatcher filters.

Returns
Cake\Routing\DispatcherFilter[]

Properties detail

$_stack ¶

protected static Cake\Routing\DispatcherFilter[]

Stack of middleware to apply to dispatchers.

[]
Follow @CakePHP
#IRC
OpenHub
Rackspace
  • Business Solutions
  • Showcase
  • Documentation
  • Book
  • API
  • Videos
  • Logos & Trademarks
  • Community
  • Team
  • Issues (Github)
  • YouTube Channel
  • Get Involved
  • Bakery
  • Featured Resources
  • Newsletter
  • Certification
  • My CakePHP
  • CakeFest
  • Facebook
  • Twitter
  • Help & Support
  • Forum
  • Stack Overflow
  • IRC
  • Slack
  • Paid Support

Generated using CakePHP API Docs