Class Socialveo\Core\Dispatcher

InheritanceSocialveo\Core\Dispatcher » Phalcon\Mvc\Dispatcher

Class Dispatcher

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_fallbackNamespace string|null Socialveo\Core\Dispatcher

Public Methods

Hide inherited methods

MethodDescriptionDefined By
getHandlerClass() Possible class name that will be located to dispatch the request. Socialveo\Core\Dispatcher
setFallbackNamespace() Set fallback namespace Socialveo\Core\Dispatcher

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
_handleException() Handles a user exception Socialveo\Core\Dispatcher
triggerError() Trigger error Socialveo\Core\Dispatcher

Property Details

$_fallbackNamespace protected property
protected string|null $_fallbackNamespace null

Method Details

_handleException() protected method

Handles a user exception

protected boolean|void _handleException ( Exception $exception )
$exception mixed
getHandlerClass() public method

Possible class name that will be located to dispatch the request.

Checks if class not exists and return fallback class

public string getHandlerClass ( )
setFallbackNamespace() public method

Set fallback namespace

public void setFallbackNamespace ( $ns )
$ns string
triggerError() protected method

Trigger error

protected void triggerError ( $statusCode 404, $message 'Not Found' )
$statusCode integer

[optional]

$message string

[optional]