Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | class SnowflakeServiceProvider extends ServiceProvider implements DeferrableProvider |
||
21 | { |
||
22 | public function register() |
||
23 | { |
||
24 | $this->mergeConfigFrom( |
||
25 | dirname(__DIR__) . '/../config/snowflake.php', 'snowflake' |
||
26 | ); |
||
27 | $this->app->singleton('snowflake', function ($app) { |
||
28 | return new Snowflake($app->config['snowflake']); |
||
29 | }); |
||
30 | } |
||
31 | |||
32 | public function boot() |
||
38 | } |
||
39 | } |
||
40 | |||
41 | public function provides() |
||
44 | } |
||
45 | } |