| @@ 58-67 (lines=10) @@ | ||
| 55 | * @since 0.1.0 |
|
| 56 | * |
|
| 57 | */ |
|
| 58 | protected function initializeEngines() |
|
| 59 | { |
|
| 60 | foreach ($this->findables as &$engine) { |
|
| 61 | $engine = $this->initializeEngine($engine); |
|
| 62 | } |
|
| 63 | ||
| 64 | if (! is_object($this->nullObject)) { |
|
| 65 | $this->nullObject = new $this->nullObject(); |
|
| 66 | } |
|
| 67 | } |
|
| 68 | ||
| 69 | /** |
|
| 70 | * Initialize a single engine by instantiating class name strings and calling closures. |
|
| @@ 64-73 (lines=10) @@ | ||
| 61 | * @param string $uri URI to use for the view. |
|
| 62 | * @param EngineInterface $engine Optional. Engine to use with the view. |
|
| 63 | */ |
|
| 64 | protected function initializeViews($uri, EngineInterface $engine = null) |
|
| 65 | { |
|
| 66 | foreach ($this->findables as &$view) { |
|
| 67 | $view = $this->initializeView($view, $uri, $engine); |
|
| 68 | } |
|
| 69 | ||
| 70 | if (! is_object($this->nullObject)) { |
|
| 71 | $this->nullObject = new $this->nullObject(); |
|
| 72 | } |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Initialize a single view by instantiating class name strings and calling closures. |
|