File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 12
12
namespace GrahamCampbell \Parse ;
13
13
14
14
use Illuminate \Contracts \Foundation \Application ;
15
+ use Illuminate \Foundation \Application as LaravelApplication ;
15
16
use Illuminate \Support \ServiceProvider ;
17
+ use Laravel \Lumen \Application as LumenApplication ;
16
18
use Parse \ParseClient ;
17
19
18
20
/**
@@ -45,9 +47,9 @@ protected function setupConfig(Application $app)
45
47
{
46
48
$ source = realpath (__DIR__ .'/../config/parse.php ' );
47
49
48
- if (class_exists ( ' Illuminate\Foundation\Application ' , false ) && $ app ->runningInConsole ()) {
50
+ if ($ app instanceof LaravelApplication && $ app ->runningInConsole ()) {
49
51
$ this ->publishes ([$ source => config_path ('parse.php ' )]);
50
- } elseif (class_exists ( ' Laravel\Lumen\Application ' , false ) ) {
52
+ } elseif ($ app instanceof LumenApplication ) {
51
53
$ app ->configure ('parse ' );
52
54
}
53
55
You can’t perform that action at this time.
0 commit comments