PHP 클래스 Bolt\Controller\Exception

저자: Gawain Lynch ([email protected])
상속: extends Base, implements Bolt\Controller\ExceptionControllerInterface
파일 보기 프로젝트 열기: bolt/bolt 1 사용 예제들

공개 메소드들

메소드 설명
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