1 | <?php |
||
23 | class DatabaseServiceProvider implements ServiceProviderInterface |
||
24 | { |
||
25 | /** |
||
26 | * Registers the service provider with a DI container. |
||
27 | * |
||
28 | * @param Container $container The DI container. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | 1 | public function register(Container $container) |
|
40 | |||
41 | /** |
||
42 | * Get the `db` service |
||
43 | * |
||
44 | * @param Container $container The DI container. |
||
45 | * |
||
46 | * @return DatabaseDriver |
||
47 | */ |
||
48 | 1 | public function getDbService(Container $container) : DatabaseDriver |
|
59 | |||
60 | /** |
||
61 | * Get the `db.migrations` service |
||
62 | * |
||
63 | * @param Container $container The DI container. |
||
64 | * |
||
65 | * @return Migrations |
||
66 | */ |
||
67 | 1 | public function getDbMigrationsService(Container $container) : Migrations |
|
74 | } |
||
75 |