PHP Класс Bolt\Controller\Exception

Автор: Gawain Lynch ([email protected])
Наследование: extends Base, implements Bolt\Controller\ExceptionControllerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
databaseConnect ( string $platform, Exception $previous ) : Response
databaseDriver ( string $subtype, string $name, string $driver, string $parameter = null ) : Response
databasePath ( string $subtype, string $path, string $error ) : Response
genericException ( Exception $exception ) : Response
kernelException ( GetResponseForExceptionEvent $event ) : Response Route for kernel exception handling.
systemCheck ( string $type, array $messages = [], array $context = [] ) : Response System check exceptions.

Защищенные методы

Метод Описание
addRoutes ( Silex\ControllerCollection $c )
getContextArray ( Exception $exception = null ) : array Get a pre-packaged Twig context array.
getSafeArguments ( array $args ) : array Get an array of safe (sanitised) function arguments from a trace entry.
getSafeTrace ( Exception $exception ) : array Get an exception trace that is safe to display publicly.
saveException ( Exception $exception ) Attempt to save the serialised exception if in debug mode.

Описание методов

addRoutes() защищенный метод

protected addRoutes ( Silex\ControllerCollection $c )
$c Silex\ControllerCollection

databaseConnect() публичный метод

public databaseConnect ( string $platform, Exception $previous ) : Response
$platform string
$previous Exception
Результат Symfony\Component\HttpFoundation\Response

databaseDriver() публичный метод

public databaseDriver ( string $subtype, string $name, string $driver, string $parameter = null ) : Response
$subtype string
$name string
$driver string
$parameter string
Результат Symfony\Component\HttpFoundation\Response

databasePath() публичный метод

public databasePath ( string $subtype, string $path, string $error ) : Response
$subtype string
$path string
$error string
Результат Symfony\Component\HttpFoundation\Response

genericException() публичный метод

public genericException ( Exception $exception ) : Response
$exception Exception
Результат Symfony\Component\HttpFoundation\Response

getContextArray() защищенный метод

Get a pre-packaged Twig context array.
protected getContextArray ( Exception $exception = null ) : array
$exception Exception
Результат array

getSafeArguments() защищенный метод

Get an array of safe (sanitised) function arguments from a trace entry.
protected getSafeArguments ( array $args ) : array
$args array
Результат array

getSafeTrace() защищенный метод

Get an exception trace that is safe to display publicly.
protected getSafeTrace ( Exception $exception ) : array
$exception Exception
Результат array

kernelException() публичный метод

Route for kernel exception handling.
public kernelException ( GetResponseForExceptionEvent $event ) : Response
$event Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
Результат Symfony\Component\HttpFoundation\Response

saveException() защищенный метод

Attempt to save the serialised exception if in debug mode.
protected saveException ( Exception $exception )
$exception Exception

systemCheck() публичный метод

System check exceptions.
public systemCheck ( string $type, array $messages = [], array $context = [] ) : Response
$type string
$messages array
$context array
Результат Symfony\Component\HttpFoundation\Response