| 1 | <?php |
||
| 14 | abstract class LogServiceProvider extends AbstractServiceProvider implements BootableServiceProviderInterface |
||
| 15 | { |
||
| 16 | protected $provides = [ |
||
| 17 | LoggerInterface::class, |
||
| 18 | ]; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Define handlers. |
||
| 22 | * |
||
| 23 | * @return HandlerInterface[] |
||
| 24 | */ |
||
| 25 | abstract public function handlers(): array; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Method will be invoked on registration of a service provider implementing |
||
| 29 | * this interface. Provides ability for eager loading of Service Providers. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | * |
||
| 33 | * @throws \Psr\Container\NotFoundExceptionInterface |
||
| 34 | * @throws \Psr\Container\ContainerExceptionInterface |
||
| 35 | * @throws \Exception |
||
| 36 | * @throws \InvalidArgumentException |
||
| 37 | */ |
||
| 38 | public function boot(): void |
||
| 54 | |||
| 55 | /** |
||
| 56 | * Use the register method to register items with the container via the |
||
| 57 | * protected $this->container property or the `getContainer` method |
||
| 58 | * from the ContainerAwareTrait. |
||
| 59 | * |
||
| 60 | * @return void |
||
| 61 | */ |
||
| 62 | public function register(): void |
||
| 65 | } |
||
| 66 |