Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
9 | class PostgresRangeServiceProvider extends ServiceProvider |
||
10 | { |
||
11 | public function register() |
||
12 | { |
||
13 | $this->setCustomResolverForPgsql(); |
||
14 | } |
||
15 | |||
16 | protected function setCustomResolverForPgsql(): void |
||
17 | { |
||
18 | Connection::resolverFor('pgsql', function ($connection, $database, $prefix, $config) { |
||
19 | return new PostgresConnection($connection, $database, $prefix, $config); |
||
20 | }); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Bootstrap the application services. |
||
25 | */ |
||
26 | public function boot(): void |
||
35 | } |
||
36 | ); |
||
37 | } |
||
39 |