1 | <?php |
||
17 | class DatabaseServiceProvider implements ServiceProviderInterface |
||
18 | { |
||
19 | /** |
||
20 | * Registers the service provider with a DI container. |
||
21 | * |
||
22 | * @param Container $container The DI container. |
||
23 | * |
||
24 | * @return void |
||
25 | * |
||
26 | * @since 1.0 |
||
27 | */ |
||
28 | 1 | public function register(Container $container) |
|
36 | |||
37 | /** |
||
38 | * Get the `db` service |
||
39 | * |
||
40 | * @param Container $container The DI container. |
||
41 | * |
||
42 | * @return DatabaseDriver |
||
43 | * |
||
44 | * @since 1.0 |
||
45 | */ |
||
46 | 1 | public function getDbService(Container $container) |
|
57 | |||
58 | /** |
||
59 | * Get the `db.migrations` service |
||
60 | * |
||
61 | * @param Container $container The DI container. |
||
62 | * |
||
63 | * @return Migrations |
||
64 | * |
||
65 | * @since 1.0 |
||
66 | */ |
||
67 | 1 | public function getDbMigrationsService(Container $container) |
|
74 | } |
||
75 |