1 | <?php |
||
8 | class LocalizerServiceProvider extends ServiceProvider |
||
9 | { |
||
10 | /** |
||
11 | * Bootstrap the application services. |
||
12 | * |
||
13 | * @return void |
||
14 | */ |
||
15 | public function boot(\Illuminate\Routing\Router $router) |
||
16 | { |
||
17 | if (!$this->app->routesAreCached()) { |
||
18 | require __DIR__.'/Routes/web.php'; |
||
19 | } |
||
20 | |||
21 | $this->publishes([ |
||
22 | __DIR__.'/Config/localizer.php' => config_path('localizer.php'), |
||
23 | ], 'localizer_config'); |
||
24 | |||
25 | $this->publishes([ |
||
26 | __DIR__.'/Config/localizer_languages.php' => config_path('localizer_languages.php'), |
||
27 | ], 'localizer_languages'); |
||
28 | |||
29 | $router->aliasMiddleware('localizer', config('localizer.middleware')); |
||
30 | $this->app->register(IdentifyServiceProvider::class); |
||
31 | |||
32 | $this->publishes([ |
||
33 | __DIR__.'/Migrations/2016_11_28_115831_add_locale_column.php' => $this->app->databasePath().'/migrations/'.date('Y_m_d_His', time()).'_add_locale_column.php', |
||
|
|||
34 | ], 'localizer_migrations'); |
||
35 | |||
36 | if (!config('localizer.dynamic_migration_name')) { |
||
37 | $this->loadMigrationsFrom(__DIR__.'/Migrations', 'localizer'); |
||
38 | } |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Register the application services. |
||
43 | * |
||
44 | * @return void |
||
45 | */ |
||
46 | public function register() |
||
51 | } |
||
52 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.