File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -31,26 +31,24 @@ class ParseServiceProvider extends ServiceProvider
31
31
*/
32
32
public function boot ()
33
33
{
34
- $ this ->setupConfig ($ this -> app );
34
+ $ this ->setupConfig ();
35
35
36
36
$ this ->setupParse ($ this ->app );
37
37
}
38
38
39
39
/**
40
40
* Setup the config.
41
41
*
42
- * @param \Illuminate\Contracts\Foundation\Application $app
43
- *
44
42
* @return void
45
43
*/
46
- protected function setupConfig (Application $ app )
44
+ protected function setupConfig ()
47
45
{
48
46
$ source = realpath (__DIR__ .'/../config/parse.php ' );
49
47
50
- if ($ app instanceof LaravelApplication && $ app ->runningInConsole ()) {
48
+ if ($ this -> app instanceof LaravelApplication && $ this -> app ->runningInConsole ()) {
51
49
$ 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 ' );
54
52
}
55
53
56
54
$ this ->mergeConfigFrom ($ source , 'parse ' );
You can’t perform that action at this time.
0 commit comments