public setExceptionTemplate ( string $exceptionTemplate ) : |
||
$exceptionTemplate | string | |
Результат |
public function setExceptionTemplate($exceptionTemplate)
{
$this->exceptionTemplate = (string) $exceptionTemplate;
return $this;
}
/** * 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); }