Skip to content

Commit 8355e33

Browse files
Tweaked config booting
1 parent 0f56b8e commit 8355e33

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/ParseServiceProvider.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,24 @@ class ParseServiceProvider extends ServiceProvider
3131
*/
3232
public function boot()
3333
{
34-
$this->setupConfig($this->app);
34+
$this->setupConfig();
3535

3636
$this->setupParse($this->app);
3737
}
3838

3939
/**
4040
* Setup the config.
4141
*
42-
* @param \Illuminate\Contracts\Foundation\Application $app
43-
*
4442
* @return void
4543
*/
46-
protected function setupConfig(Application $app)
44+
protected function setupConfig()
4745
{
4846
$source = realpath(__DIR__.'/../config/parse.php');
4947

50-
if ($app instanceof LaravelApplication && $app->runningInConsole()) {
48+
if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {
5149
$this->publishes([$source => config_path('parse.php')]);
52-
} elseif ($app instanceof LumenApplication) {
53-
$app->configure('parse');
50+
} elseif ($this->app instanceof LumenApplication) {
51+
$this->app->configure('parse');
5452
}
5553

5654
$this->mergeConfigFrom($source, 'parse');

0 commit comments

Comments
 (0)