-
Notifications
You must be signed in to change notification settings - Fork 438
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
Symfony 5 #997
Symfony 5 #997
Conversation
Thanks for your work @kuraobi. We can drop support for Symfony prior to 4.3. You can do some BC breaks if it is appropriate. It is going to be released as Hope it makes things easier. |
fcd704a
to
d75eed7
Compare
FWIW Symfony 3.4 is still considered actively maintained for almost a year (https://symfony.com/releases). If compatibility can be maintained without major effort it would be a ➕ . I don't particularly need 3.4 compatibility as I try to keep my own projects updated, but for some people it can be important 😞 |
@Steveb-p Symfony 3.x users can still use Enqueue 0.9 which is quite mature. |
ec19d88
to
0a5dfbf
Compare
I fixed the build and it's all green on my fork (https://travis-ci.org/kuraobi/enqueue-dev/builds/624082381), but the build fails on the PR due to some cache problem. It complains about a test class that don't even exist 😰 |
I'll drop support for < 4.3 in a separate branch, so that you can decide if you want to drop it or not. |
Feel free to drop it immediately. I agree with @makasim. |
3b00532
to
a538233
Compare
Yeah, just drop it. |
OK so I dropped 4.3 and fixed all the linter errors, you just need to clear the travis cache to get rid of the non existing |
I cleared the cache and re-run the build. The error is still there. Have you tried to run tests locally? Does it work? |
That's weird, the tests work fine locally, as well as on Travis on my fork (https://travis-ci.org/kuraobi/enqueue-dev). The file where the error is supposed to be does not exist in the project. |
Okay. I'll merge it as long as tests pass for your fork on Travis. |
Tagged 0.1.0.0. |
@makasim there are several symfony dependencies that do not yet allow symfony 5.0 .. was this somehow intentional or just an oversight? this is blocking liip/LiipImagineBundle#1246 |
I'm almost sure it was an oversight on our part. What dependencies specifically are causing issues if you don't mind? |
@lsmith77 these particular dependencies should not be an issue since they are the deps of enqueue-dev. It is a development repo and is not listed on packagist at all. Any way the deps linked have to be fixed. It's an error. Are you requiring 0.10.0 version ? |
Huh, seems like packages were updated with Symfony 5.0 dependency in their composer.json files, but the "main" repository file was not adjusted. I'll add a PR for it in the evening if no one else does in the meantime. There are some errors reported in CI that we'll have to look into as well.
LiipBundle seems to have a dev dependency on 0.9: They should be good to go once they switch it over to 0.10. |
right of course .. and I didn't read the error messages properly on travis .. the issue is with |
Updates #987.
So, I spent a bit of time on this Symfony 5 compatibility, and there was quite a lot to do actually:
setExpectedException
.voryx/thruway
is actually only needed for dev and testing, so I moved it to the thruway docker container.EventDispatcher
and theEvent
class from Symfony. Symfony completely changed those between 4.3 and 5.0. They provide a proxy to help with migrating from 4.3+ to 5.0, but the proxy is not enough and does not exist for prior versions. So it’s a bit messy but basically, the oldEvent
class is supported for Symfony < 4.3, the newEvent
class is supported for Symfony >= 5.0, and the versions in between support both classes, allowing people to migrate their code.kernel.root_dir
withkernel.project_dir
.framework.templating
option inconfig.yml
, as it does not exist anymore.MessageQueueCollector
, since theDataCollector
interface has changed.RunCommandProcessor
to use Process construction from array instead of string, which is deprecated.