1 | <?php |
||
20 | class DatabaseServiceProvider implements ServiceProviderInterface |
||
21 | { |
||
22 | /** |
||
23 | * Registers the service provider with a DI container. |
||
24 | * |
||
25 | * @param Container $container The DI container. |
||
26 | * |
||
27 | * @return void |
||
28 | */ |
||
29 | 11 | public function register(Container $container): void |
|
39 | |||
40 | /** |
||
41 | * Extends the database driver service |
||
42 | * |
||
43 | * @param DatabaseDriver $db The database driver to extend. |
||
44 | * @param Container $container The DI container. |
||
45 | * |
||
46 | * @return DatabaseDriver |
||
47 | */ |
||
48 | public function extendDatabaseDriverService(DatabaseDriver $db, Container $container): DatabaseDriver |
||
54 | |||
55 | /** |
||
56 | * Get the `db.migrations` service |
||
57 | * |
||
58 | * @param Container $container The DI container. |
||
59 | * |
||
60 | * @return Migrations |
||
61 | */ |
||
62 | public function getDbMigrationsService(Container $container): Migrations |
||
69 | |||
70 | /** |
||
71 | * Get the `db.monitor.logging` service |
||
72 | * |
||
73 | * @param Container $container The DI container. |
||
74 | * |
||
75 | * @return LoggingMonitor |
||
76 | */ |
||
77 | public function getDbMonitorLoggingService(Container $container): LoggingMonitor |
||
84 | } |
||
85 |