flipboxstudio / lumen-generator

A Lumen Generator You Are Missing
https://packagist.org/packages/flipbox/lumen-generator
MIT License
824 stars 126 forks source link

route:list get_class() expects parameter 1 to be object, null given #83

Open milanbeo opened 4 years ago

milanbeo commented 4 years ago

message: ErrorException: get_class() expects parameter 1 to be object, null given in \bsrestoauth2\vendor\flipbox\lumen-generator\src\LumenGenerator\Console\RouteListCommand.php:65

Used in Lumen7 + dingo 3. causes part of the code in dingo routes:

$api->get( '/', function () { return [ 'message' => trans('messages.welcome'), 'branch' => 'dev-production', ]; } );

It works normally in use.

mattkomarnicki commented 3 years ago

I have the exact same issue. Affected line is 'controller' => get_class($innerRoute->getControllerInstance()), in the RouteListCommand class.

Any chance for a fix?