@@ -6,48 +6,48 @@ |
||
| 6 | 6 | class ElimuswiftCoreServiceProvider extends ServiceProvider |
| 7 | 7 | { |
| 8 | 8 | |
| 9 | - /** |
|
| 10 | - * Bootstrap the application services. |
|
| 11 | - * |
|
| 12 | - * @return void |
|
| 13 | - */ |
|
| 14 | - public function boot() |
|
| 15 | - { |
|
| 16 | - $this->loadFiles(); |
|
| 17 | - } |
|
| 18 | - |
|
| 19 | - |
|
| 20 | - /** |
|
| 21 | - * Register the application services. |
|
| 22 | - * |
|
| 23 | - * @return void |
|
| 24 | - */ |
|
| 25 | - public function register() |
|
| 26 | - { |
|
| 27 | - $this->mergeConfigFrom( |
|
| 28 | - __DIR__.'/config/core.php', 'core' |
|
| 29 | - ); |
|
| 30 | - |
|
| 31 | - $this->app->singleton('envatoapi', function(){ |
|
| 32 | - return new EnvatoApi(env('ENVATO_SECRET')); |
|
| 33 | - }); |
|
| 34 | - |
|
| 35 | - $this->app->bind('Elimuswift\Core\Repositories\Contracts\RepositoryContract', 'Elimuswift\Core\Repositories\UpdatesRepository'); |
|
| 36 | - } |
|
| 37 | - |
|
| 38 | - /** |
|
| 39 | - * Load and publish app migration files |
|
| 40 | - * |
|
| 41 | - * @return void |
|
| 42 | - * |
|
| 43 | - **/ |
|
| 44 | - protected function loadFiles() |
|
| 45 | - { |
|
| 46 | - $this->publishes([ |
|
| 47 | - __DIR__.'config/core.php' => config_path('core.php'), |
|
| 48 | - ]); |
|
| 49 | - // $this->loadMigrationsFrom(__DIR__.'/Migrations'); |
|
| 50 | - $this->loadRoutesFrom(__DIR__.'/routes.php'); |
|
| 51 | - } |
|
| 9 | + /** |
|
| 10 | + * Bootstrap the application services. |
|
| 11 | + * |
|
| 12 | + * @return void |
|
| 13 | + */ |
|
| 14 | + public function boot() |
|
| 15 | + { |
|
| 16 | + $this->loadFiles(); |
|
| 17 | + } |
|
| 18 | + |
|
| 19 | + |
|
| 20 | + /** |
|
| 21 | + * Register the application services. |
|
| 22 | + * |
|
| 23 | + * @return void |
|
| 24 | + */ |
|
| 25 | + public function register() |
|
| 26 | + { |
|
| 27 | + $this->mergeConfigFrom( |
|
| 28 | + __DIR__.'/config/core.php', 'core' |
|
| 29 | + ); |
|
| 30 | + |
|
| 31 | + $this->app->singleton('envatoapi', function(){ |
|
| 32 | + return new EnvatoApi(env('ENVATO_SECRET')); |
|
| 33 | + }); |
|
| 34 | + |
|
| 35 | + $this->app->bind('Elimuswift\Core\Repositories\Contracts\RepositoryContract', 'Elimuswift\Core\Repositories\UpdatesRepository'); |
|
| 36 | + } |
|
| 37 | + |
|
| 38 | + /** |
|
| 39 | + * Load and publish app migration files |
|
| 40 | + * |
|
| 41 | + * @return void |
|
| 42 | + * |
|
| 43 | + **/ |
|
| 44 | + protected function loadFiles() |
|
| 45 | + { |
|
| 46 | + $this->publishes([ |
|
| 47 | + __DIR__.'config/core.php' => config_path('core.php'), |
|
| 48 | + ]); |
|
| 49 | + // $this->loadMigrationsFrom(__DIR__.'/Migrations'); |
|
| 50 | + $this->loadRoutesFrom(__DIR__.'/routes.php'); |
|
| 51 | + } |
|
| 52 | 52 | |
| 53 | 53 | } |