| 1 | <?php |
||
| 16 | class EnvSyncServiceProvider extends ServiceProvider |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Bootstrap the application services. |
||
| 20 | * |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function boot() |
||
| 24 | { |
||
| 25 | // |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Register the application services. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function register() |
||
| 34 | { |
||
| 35 | // bindings |
||
| 36 | $this->app->bind(ReaderInterface::class, EnvFileReader::class); |
||
| 37 | $this->app->bind(WriterInterface::class, EnvFileWriter::class); |
||
| 38 | |||
| 39 | // artisan command |
||
| 40 | $this->commands(Console\SyncCommand::class); |
||
| 41 | } |
||
| 42 | |||
| 43 | public function provides() |
||
| 44 | { |
||
| 45 | return [ |
||
| 46 | ReaderInterface::class, |
||
| 47 | WriterInterface::class, |
||
| 48 | ]; |
||
| 49 | } |
||
| 50 | |||
| 51 | |||
| 52 | } |
||
| 53 |