| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 12 | public function register() : void |
|
| 23 | { |
||
| 24 | |||
| 25 | 12 | $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'transitions'); |
|
| 26 | |||
| 27 | $this->app->bind(TransitionFactory::class, function (Application $app) { |
||
| 28 | |||
| 29 | 3 | return new LaravelTransitionFactory($app); |
|
| 30 | 12 | }); |
|
| 31 | |||
| 32 | $this->app->bind(TransitionMiddleware::class, function (Application $app) { |
||
| 33 | |||
| 34 | 3 | $config = Config::fromArray($app->make('config')->get('transitions')); |
|
| 35 | 3 | return new TransitionMiddleware($config, $app->make(TransitionFactory::class)); |
|
| 36 | 12 | }); |
|
| 37 | |||
| 38 | 12 | $this->commands([GenerateTransition::class]); |
|
| 39 | 12 | } |
|
| 40 | } |
||
| 41 |