@@ -74,6 +74,9 @@ |
||
| 74 | 74 | $this->container->get('config'); |
| 75 | 75 | } |
| 76 | 76 | |
| 77 | + /** |
|
| 78 | + * @param string $id |
|
| 79 | + */ |
|
| 77 | 80 | public function get($id) { |
| 78 | 81 | return $this->container->get($id); |
| 79 | 82 | } |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace League\Plates\RenderTemplate; |
| 4 | 4 | |
| 5 | +use Exception; |
|
| 5 | 6 | use League\Plates; |
| 6 | 7 | use Throwable; |
| 7 | -use Exception; |
|
| 8 | 8 | |
| 9 | 9 | final class PlatesRenderTemplate implements Plates\RenderTemplate |
| 10 | 10 | { |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | }; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | +/** |
|
| 36 | + * @param \Closure $include |
|
| 37 | + */ |
|
| 35 | 38 | function validatePathInclude($include, $file_exists = 'file_exists') { |
| 36 | 39 | return function($path, array $vars) use ($include, $file_exists) { |
| 37 | 40 | if (!$file_exists($path)) { |