bbrothers /
Muzzle
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Muzzle; |
||
| 4 | |||
| 5 | use Illuminate\Support\ServiceProvider; |
||
| 6 | |||
| 7 | class MuzzleProvider extends ServiceProvider |
||
| 8 | { |
||
| 9 | |||
| 10 | public function boot() |
||
| 11 | { |
||
| 12 | |||
| 13 | if ($this->app->runningInConsole()) { |
||
| 14 | $this->publishes([ |
||
| 15 | __DIR__ . '/../config/config.php' => config_path('muzzle.php'), |
||
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 16 | ]); |
||
| 17 | } |
||
| 18 | } |
||
| 19 | |||
| 20 | public function register() |
||
| 21 | { |
||
| 22 | |||
| 23 | $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'muzzle'); |
||
| 24 | |||
| 25 | ResponseBuilder::setFixtureDirectory($this->app['config']->get('muzzle.fixture_path')); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |