| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ServiceGeneratorServiceProvider extends ServiceProvider |
||
| 12 | { |
||
| 13 | |||
| 14 | private $configPath = '/config/service-generator.php'; |
||
| 15 | |||
| 16 | |||
| 17 | /** |
||
| 18 | * |
||
| 19 | */ |
||
| 20 | public function boot() |
||
| 21 | { |
||
| 22 | $this->publishes([ |
||
| 23 | __DIR__.$this->configPath => config_path('service-generator.php'), |
||
|
|
|||
| 24 | ], 'service-generator'); |
||
| 25 | } |
||
| 26 | |||
| 27 | |||
| 28 | /** |
||
| 29 | * |
||
| 30 | */ |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | // merge default config |
||
| 34 | $this->mergeConfigFrom( |
||
| 35 | __DIR__.$this->configPath , 'repositories' |
||
| 36 | ); |
||
| 37 | |||
| 38 | // And generators. |
||
| 39 | $this->registerServiceGenerator(); |
||
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | /** |
||
| 44 | * |
||
| 45 | */ |
||
| 46 | private function registerServiceGenerator() |
||
| 54 | } |
||
| 55 | |||
| 56 | } |