Conditions | 2 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | protected function runInstaller() |
||
24 | { |
||
25 | collect([ |
||
26 | Installation\PublishAssets::class, |
||
27 | Installation\CreateBootstrapDirectory::class, |
||
28 | Installation\CreateBootstrapFile::class, |
||
29 | Installation\CreateNavigationFile::class, |
||
30 | Installation\CreateRoutesFile::class, |
||
31 | Installation\CreateSectionServiceProvider::class, |
||
32 | Installation\CreatePublicDirectory::class, |
||
33 | ]) |
||
34 | ->map(function ($installer) { |
||
35 | return new $installer($this, $this->config); |
||
36 | }) |
||
37 | ->filter(function ($installer) { |
||
38 | return $this->option('force') ? true : ! $installer->installed(); |
||
39 | })->each(function ($installer) { |
||
40 | $installer->install(); |
||
41 | $installer->showInfo(); |
||
42 | }); |
||
43 | |||
44 | $this->comment('SleepingOwl Framework successfully installed.'); |
||
45 | } |
||
46 | } |
||
47 |