Open HASSANDL opened 2 years ago
I'm getting the same problem. Any fixes?
I solved by checking in bootstrap/app.php file
Added a check at the beginning of the file
<?php
if (class_exists('\Illuminate\Container\Container')) {
return \Illuminate\Container\Container::getInstance();
}
require_once __DIR__ . '/../vendor/autoload.php';
In order not to download an already connected file https://github.com/swooletw/laravel-swoole/blob/master/src/Concerns/WithApplication.php#L52
I use instanceof Laravel\Lumen\Application for main app class (instanceof instanceof Container class) but you check app instanceof Container class in
src/Concerns/WithApplication.php
when start swoole show below error:
when I change to
if (! is_subclass_of($this->app, 'Container')) {
start without problem.