|
6 | 6 | use Illuminate\Filesystem\Filesystem; |
7 | 7 | use Illuminate\Support\Collection; |
8 | 8 | use Illuminate\Support\ServiceProvider; |
9 | | -use Illuminate\View\Engines\CompilerEngine; |
10 | 9 | use Kiroushi\DbBlade\Compilers\DbBladeCompiler; |
11 | 10 |
|
12 | 11 | class DbBladeCompilerServiceProvider extends ServiceProvider |
@@ -60,7 +59,7 @@ public function register() |
60 | 59 |
|
61 | 60 | $cachePath = storage_path('app/db-blade/cache/views'); |
62 | 61 |
|
63 | | - return new Compilers\DbBladeCompiler($app['files'], $cachePath); |
| 62 | + return new DbBladeCompiler($app['files'], $cachePath); |
64 | 63 |
|
65 | 64 | }); |
66 | 65 | } |
@@ -95,7 +94,7 @@ public function registerFactory() |
95 | 94 | * |
96 | 95 | * @param \Kiroushi\DbBlade\DbViewFinder $finder |
97 | 96 | * @param \Illuminate\Contracts\Events\Dispatcher $events |
98 | | - * @return \Kiroushi\DbBlade\Factory; |
| 97 | + * @return \Kiroushi\DbBlade\Factory |
99 | 98 | */ |
100 | 99 | protected function createFactory($finder, $events) |
101 | 100 | { |
@@ -129,7 +128,7 @@ public function registerDbViewFinder() |
129 | 128 | protected function getMigrationFileName(Filesystem $filesystem): string |
130 | 129 | { |
131 | 130 | $timestamp = date('Y_m_d_His'); |
132 | | - |
| 131 | + |
133 | 132 | return Collection::make($this->app->databasePath() . DIRECTORY_SEPARATOR . 'migrations' . DIRECTORY_SEPARATOR) |
134 | 133 | ->flatMap(function ($path) use ($filesystem) { |
135 | 134 | return $filesystem->glob($path . '*_create_db_views_table.php'); |
|
0 commit comments