@@ -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)) { |