Skip to content

Commit 76b1ade

Browse files
committed
fix withApplication in lumen
1 parent b1a3f33 commit 76b1ade

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ matrix:
1818
env: FRAMEWORK_VERSION=laravel/lumen-framework:5.6.*
1919
- php: 7.2
2020
env: FRAMEWORK_VERSION=laravel/lumen-framework:5.7.*
21-
- php: 7.2
22-
env: FRAMEWORK_VERSION=laravel/lumen-framework:5.8.*
21+
# - php: 7.2
22+
# env: FRAMEWORK_VERSION=laravel/lumen-framework:5.8.*
2323

2424
before_install:
2525
- printf "\n" | pecl install swoole

src/Concerns/WithApplication.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ protected function bootstrap()
3636
if (method_exists($this->app, 'boot')) {
3737
$this->app->boot();
3838
}
39-
if (is_null(Facade::getFacadeApplication())) {
40-
$this->app->withFacades();
41-
}
39+
$this->app->withFacades();
4240
}
4341

4442
$this->preResolveInstances();

0 commit comments

Comments
 (0)