| @@ 29-38 (lines=10) @@ | ||
| 26 | * |
|
| 27 | * @return void |
|
| 28 | */ |
|
| 29 | public function register(Container $container): void |
|
| 30 | { |
|
| 31 | $container->extend(DatabaseDriver::class, [$this, 'extendDatabaseDriverService']); |
|
| 32 | ||
| 33 | $container->alias('db.monitor.logging', LoggingMonitor::class) |
|
| 34 | ->share(LoggingMonitor::class, [$this, 'getDbMonitorLoggingService']); |
|
| 35 | ||
| 36 | $container->alias('db.migrations', Migrations::class) |
|
| 37 | ->share(Migrations::class, [$this, 'getDbMigrationsService']); |
|
| 38 | } |
|
| 39 | ||
| 40 | /** |
|
| 41 | * Extends the database driver service |
|
| @@ 30-37 (lines=8) @@ | ||
| 27 | * |
|
| 28 | * @return void |
|
| 29 | */ |
|
| 30 | public function register(Container $container): void |
|
| 31 | { |
|
| 32 | $container->alias(Dispatcher::class, DispatcherInterface::class) |
|
| 33 | ->share(DispatcherInterface::class, [$this, 'getDispatcherService']); |
|
| 34 | ||
| 35 | $container->share(ErrorSubscriber::class, [$this, 'getErrorSubscriberService']) |
|
| 36 | ->tag('event.subscriber', [ErrorSubscriber::class]); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * Get the DispatcherInterface service |
|