| @@ 215-229 (lines=15) @@ | ||
| 212 | * @throws \Exception |
|
| 213 | */ |
|
| 214 | // @codingStandardsIgnoreStart |
|
| 215 | protected function _getViewFileName($name = null) |
|
| 216 | { |
|
| 217 | // @codingStandardsIgnoreEnd |
|
| 218 | $rethrow = new \Exception('You\'re not supposed to get here'); |
|
| 219 | foreach ($this->extensions as $extension) { |
|
| 220 | $this->_ext = $extension; |
|
| 221 | try { |
|
| 222 | return parent::_getViewFileName($name); |
|
| 223 | } catch (\Exception $exception) { |
|
| 224 | $rethrow = $exception; |
|
| 225 | } |
|
| 226 | } |
|
| 227 | ||
| 228 | throw $rethrow; |
|
| 229 | } |
|
| 230 | ||
| 231 | /** |
|
| 232 | * @param string|null $name |
|
| @@ 237-251 (lines=15) @@ | ||
| 234 | * @throws \Exception |
|
| 235 | */ |
|
| 236 | // @codingStandardsIgnoreStart |
|
| 237 | protected function _getLayoutFileName($name = null) |
|
| 238 | { |
|
| 239 | // @codingStandardsIgnoreEnd |
|
| 240 | $rethrow = new \Exception('You\'re not supposed to get here'); |
|
| 241 | foreach ($this->extensions as $extension) { |
|
| 242 | $this->_ext = $extension; |
|
| 243 | try { |
|
| 244 | return parent::_getLayoutFileName($name); |
|
| 245 | } catch (\Exception $exception) { |
|
| 246 | $rethrow = $exception; |
|
| 247 | } |
|
| 248 | } |
|
| 249 | ||
| 250 | throw $rethrow; |
|
| 251 | } |
|
| 252 | ||
| 253 | /** |
|
| 254 | * @param string $name |
|