| Conditions | 7 |
| Paths | 6 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function register() |
||
| 34 | { |
||
| 35 | $source = realpath($raw = __DIR__.'/../config/httpSecurity.php') ?: $raw; |
||
| 36 | |||
| 37 | if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) { |
||
| 38 | $this->publishes([$source => config_path('httpSecurity.php')]); |
||
| 39 | } elseif ($this->app instanceof LumenApplication) { |
||
| 40 | $this->app->configure('httpSecurity'); |
||
| 41 | } |
||
| 42 | |||
| 43 | if ($this->app instanceof LaravelApplication && !$this->app->configurationIsCached()) { |
||
| 44 | $this->mergeConfigFrom($source, 'httpSecurity'); |
||
| 45 | } |
||
| 48 |