dusterio / lumen-passport

Making Laravel Passport work with Lumen
MIT License
655 stars 138 forks source link

Can not pass callback to LumenPassport::routes #40

Closed maximzasorin closed 6 years ago

maximzasorin commented 7 years ago

Method LumenPassport::routes needs to be modified for ability to take $callback argument as in Laravel\Passport::routes.

For example:

Dusterio\LumenPassport\LumenPassport::routes($app, $callback, $options);

This will allow configure only necessary routes.

ronnie-depp commented 7 years ago

same problem. the actual problem is this. cannot pass it $app @maximzasorin @dusterio @dcdebrabander

dusterio commented 6 years ago

@maximzasorin routes() method is practically identical to Laravel Passport routes() method, Laravel Passport got only two parameters as well? $callback can be a function or an app container