-
Notifications
You must be signed in to change notification settings - Fork 47
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
Compatibility issues with Lumen 5.2.8? #5
Comments
Downgrading to Lumen 5.1.7 and develpr/alexa-app 0.2.2 seems to work (but obviously isn't ideal). Versions 0.2.3+ seem broken, likely due to these changes: 0.2.2...0.2.3 |
Lumen 5.1.7 and develpr/alexa-app 0.2.7 play nicely if https://github.com/develpr/alexa-app/blob/0.2.7/src/Provider/LumenServiceProvider.php#L18 is changed accordingly: - $this->app->instance('app.middleware', $this->gatherAppMiddleware($reflection));
+ $this->app->instance('alexa.router.middleware', $this->gatherAppMiddleware($reflection)); |
So yeah, I'm not a Laravel/Lumen expert by any means, but it almost seems like this library simply isn't compatible with Lumen 5.2. Would you have any objections to making this library compatible with 5.2 (and dropping support for 5.1)? I don't mind doing the work (or at least trying to), though I must admit I'll only be testing against Lumen. |
Hey @colinodell , thank you so much for taking the time to take a look at this! A few comments:
To be honest there hasn't been all that much interest in this and as my own projects have mainly been with Laravel lately I haven't given as much love to Lumen. I will also try to take a look at Lumen support for 5.2/3 myself, but I'm pretty busy with work lately so it could be a bit. Again though, if you want to take a look that would be awesome! |
I've ended up switching to Laravel and it does indeed work perfectly. Not sure if you want to keep this open (should others be interested in fixing this). |
I think it's worth leaving open for now. I appreciate your time. I should (and will) reflect in the docs that there is a known issue with 5.2.8 (at least) and point people here for now until it's either resolved by somebody who has a vested interest, or until I am working with Lumen again myself! Thanks again for your time with this @colinodell ! |
I'm pretty sure I've configured this library correctly, but when I send requests into Lumen I get this exception:
From what I can tell,
alexa.router.middleware
is only defined in theLaravelServiceProvider
. InLumenServiceProvider
there's aapp.middleware
defined instead.I tried changing this
app.middleware
string toalexa.router.middleware
but that led to another exception:Any thoughts or guidance would be really appreciated - this is my first time working on a Laravel/Lumen application, so I'm a bit over my head.
Edit: Removed the first exception, I think that was the result of me messing around with things.
The text was updated successfully, but these errors were encountered: