Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • Controller
  • Dispatcher
  • Helpers
  • Pattern

Functions

  • contextualize
  • decontextualize

Class Dispatcher

Dispatches requests among the defined routes.

If a route matching the request is found, the $route and $decontextualized_path properties are add to the request object. $route holds the route object, $decontextualized_path holds the decontextualized path. The path is decontextualized using the ICanBoogie\Routing\decontextualize() function.

use ICanBoogie\HTTP\Dispatcher;

$dispatcher = new Dispatcher(array('routes' => 'ICanBoogie\Routing\Dispatcher'));
ICanBoogie\Routing\Dispatcher implements ICanBoogie\HTTP\IDispatcher
Namespace: ICanBoogie\Routing
Located at vendor/icanboogie/routing/lib/dispatcher.php

Methods summary

public ICanBoogie\HTTP\Response
# __invoke( ICanBoogie\HTTP\Request $request )

Process the request.

Process the request.

Parameters

$request
ICanBoogie\HTTP\Request
$request

Returns

ICanBoogie\HTTP\Response
A response to the tequest.

Implementation of

ICanBoogie\HTTP\IDispatcher::__invoke()
protected ICanBoogie\HTTP\Response|null
# dispatch( ICanBoogie\Route $route, ICanBoogie\HTTP\Request $request )

Dispatches the route.

Dispatches the route.

Parameters

$route
ICanBoogie\Route
$route
$request
ICanBoogie\HTTP\Request
$request

Returns

ICanBoogie\HTTP\Response|null
public ICanBoogie\HTTP\Response
# rescue( Exception $exception, ICanBoogie\HTTP\Request $request )

Fires ICanBoogie\Routing\Dispatcher\RescueEvent and returns the response provided by third parties. If no response was provided, the exception (or the exception provided by third parties) is rethrown.

Fires ICanBoogie\Routing\Dispatcher\RescueEvent and returns the response provided by third parties. If no response was provided, the exception (or the exception provided by third parties) is rethrown.

Parameters

$exception
Exception
$exception
$request

Returns

ICanBoogie\HTTP\Response

Throws

Exception
when the request exception cannot be rescued.

Implementation of

ICanBoogie\HTTP\IDispatcher::rescue()

Magic methods summary

Autodoc API documentation generated by ApiGen 2.8.0