src/LIN3S/CMSKernel/Infrastructure/Lin3sAdminBundle/Action/Type/NewTranslatableActionType.php 1 location
|
@@ 138-147 (lines=10) @@
|
| 135 |
|
); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
private function addError(Exception $exception, array $options) |
| 139 |
|
{ |
| 140 |
|
$exceptions = $this->catchableExceptions($options); |
| 141 |
|
$exceptionClassName = get_class($exception); |
| 142 |
|
|
| 143 |
|
if (array_key_exists($exceptionClassName, $exceptions)) { |
| 144 |
|
$error = $this->translator->trans($exceptions[$exceptionClassName]); |
| 145 |
|
$this->flashBag->add('lin3s_admin_error', $error); |
| 146 |
|
} |
| 147 |
|
} |
| 148 |
|
|
| 149 |
|
private function catchableExceptions(array $options) |
| 150 |
|
{ |
src/LIN3S/CMSKernel/Infrastructure/Lin3sAdminBundle/Action/Type/TranslateActionType.php 1 location
|
@@ 143-152 (lines=10) @@
|
| 140 |
|
return $translation; |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
private function addError(Exception $exception, array $options) |
| 144 |
|
{ |
| 145 |
|
$exceptions = $this->catchableExceptions($options); |
| 146 |
|
$exceptionClassName = get_class($exception); |
| 147 |
|
|
| 148 |
|
if (array_key_exists($exceptionClassName, $exceptions)) { |
| 149 |
|
$error = $this->translator->trans($exceptions[$exceptionClassName]); |
| 150 |
|
$this->flashBag->add('lin3s_admin_error', $error); |
| 151 |
|
} |
| 152 |
|
} |
| 153 |
|
|
| 154 |
|
private function catchableExceptions(array $options) |
| 155 |
|
{ |