Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function run(array $parameters = []) |
||
51 | { |
||
52 | $parts = explode('.', $parameters['viewName']); |
||
53 | $file = array_pop($parts); |
||
54 | $path = implode('/', $parts); |
||
55 | $fileViewFinder = View::getFinder(); |
||
56 | |||
57 | $filesystem = new Filesystem(); |
||
58 | $filesystem->mkdir($fileViewFinder->getPaths()[0].'/'.$path.'/'); |
||
59 | $fullPath = $fileViewFinder->getPaths()[0].'/'.$path.'/'.$file.'.blade.php'; |
||
60 | |||
61 | touch($fullPath); |
||
62 | } |
||
63 | } |
||
64 |