| 1 | <?php |
||
| 29 | class FooServiceProvider implements ServiceProviderInterface |
||
| 30 | { |
||
| 31 | /** |
||
| 32 | * @param Container $container |
||
| 33 | * |
||
| 34 | * @return mixed |
||
| 35 | */ |
||
| 36 | public function register(Container $container) |
||
| 37 | { |
||
| 38 | $container->add('foo', new Foo()); |
||
| 39 | config()->merge([ |
||
| 40 | 'consoles' => [ |
||
| 41 | DemoConsole::class, |
||
| 42 | ], |
||
| 43 | ]); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |