Set the exception template
public setExceptionTemplate ( string $exceptionTemplate ) : |
||
$exceptionTemplate | string | |
리턴 |
/** * Inject strategy with configured exception_template * * @param ExceptionStrategy $strategy * @param array $config */ private function injectExceptionTemplate(ExceptionStrategy $strategy, array $config) { $template = isset($config['exception_template']) ? $config['exception_template'] : 'error'; $strategy->setExceptionTemplate($template); }