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
Support Laravel 5.2 #215
Support Laravel 5.2 #215
Conversation
The failed test is because of PHP 5.4 which isn't supported by Laravel 5.2 so the change in the Composer class location throws an error. @cviebrock would you be okay with me updating composer and travis to remove PHP 5.4? |
Dropping PHP 5.4 would also mean increasing the minimum Laravel version to 5.1 (which requires PHP 5.5.9 or above). |
Actually, it's going to increase Laravel to 5.2 anyway isn't it, because it requires the Composer class in that location. Duh. |
@EspadaV8 I saw this commit from another repo: https://github.com/laracasts/Laravel-5-Generators-Extended/pull/83/files That would (allegedly, since I haven't tested it) make it work on both 5.1 and 5.2 (including the things you proposed) |
That requires use of the global |
@EspadaV8 agreed! Lets see what @cviebrock thinks 🎅 |
Just had a look at the support report and it doesn't contain the Container class so either was the package would need to be updated with (I'm guessing) foundation added as a requirement. (on my mobile so can't check easily). I would probably recommend tagging a final 0.1x release and then release a new 0.2x for L5.2 and up. |
Hmm, okay, so the Using app()['composer'] works, but I'm not a great fan of using the global function. What can be done though, is to remove the second parameter from the constructor and then use |
@EspadaV8 So should we change the namespace on a new release or using |
This PR looks good, but probably warrants a version bump. Let me take a look it all more closely in the next few days. I wanted to do a major refactor of things for the next version, but I might not get to that in time, and I don't want to make things unusable for Laravel 5.2 users. |
We should have a branch for 5.2 or using IoC for resolving Composer so that it can be compatible with 5.* |
So, I think there are now several items that need resolving for 5.2 compatibility. First is the composer issue. Is there an injection we could make for Composer that works in 5.1 and 5.2? If so, let's use that. If not, I'd almost be tempted to just entirely remove the use of composer in that class, and not do the Second issue is the Finally, updating workbench and travis to support 5.2. It doesn't look like we can do this and make things compatible with 5.2 and earlier 5.* versions, does it? So, probably a new branch (and major version bump) are going to be needed anyway. Sometime this holidays, I'll deal with it. :) |
Try the 3.1.4 release. I removed the composer reference to make it compatible with Laravel 5.2, and fixed |
Como puedo desinstalar la version mas reciente de Sluggable para instalar la version 3.1.4 |
Don't use 3.1.4. Use 4.0.1 now. |
Laravel 5.1 deprecated using
bindShared
and 5.2 removed it completely, because of this a package update tococur/slugify
is needed to at least 1.4.orchestra/testbench
3.0 only supports Laravel 5.0.* so that requires an update as well.Illuminate\Foundation\Composer
has been moved toIlluminate\Support\Composer