-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function name must be a string #20
Comments
could you find more details? use xdebug? Or set |
I already have the xdebug enabled, otherwise PHP won't print the stack trace :) @scil Where should I add eval(tinker()) ? Thanks. |
eval(tinker()) can be placed everywhere almost. open https://github.com/scil/LaravelFly and click "tinker use examples.(🎃 click me!)", |
OK thanks, I figured it out and tried, but it would take me some time to use it properly. The error seems to be associated with a middleware. I will try to use xdebug to see the problem. |
Ok I got a bit closer to the issue. I have a named middleware that I registered in App/Http/Kernel.php. The trouble is when it gets to the Line 152 of Illuminate\Pipeline\Pipeline it for some reason is not able to obtain its class thus causing the error. My current application is perfectly working fine with default PHP-FPM setup. $response = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters); |
Can I read your middleware code? or have you changed ``class Kernel extends HttpKernel ` in app/Http/Kernel.php like https://github.com/scil/LaravelFly/blob/master/doc/config.md ? |
OK this code fixed the issue in App\Http\Kernel.php: if (defined('LARAVELFLY_MODE')) {
if (LARAVELFLY_MODE == 'Map') {
class WhichKernel extends \LaravelFly\Map\Kernel { }
}elseif (LARAVELFLY_MODE == 'Simple') {
class WhichKernel extends \LaravelFly\Simple\Kernel { }
} elseif (LARAVELFLY_MODE == 'FpmLike') {
class WhichKernel extends HttpKernel{}
} else {
class WhichKernel extends \LaravelFly\Greedy\Kernel { }
}
} else {
class WhichKernel extends HttpKernel { }
} Thanks |
nice! You can also define an new Kernel file only for LaravelFly and replace |
in my laravel 5.6 application I am getting a strange error on every request.
What is possibaly going wrong here?
The text was updated successfully, but these errors were encountered: