PropelBundle
PropelBundle copied to clipboard
Symfony 4 Compatibility
Please, could you re-run travis? After merging https://github.com/propelorm/Propel2/pull/1434 test suite should be green. Thank you!
My last commit is green, I left you see if it's usefull to merge it to the master...
Thank you to include my branch 4.0 into your PR! Anyway, I'm asking you (and the PropelBundle team) to consider the following points:
- I refactored the bundle to be Symfony 4.0 only, so it's better to create a new
4.0branch in Propel repository, instead of merging it into 3.0, because it beaks compatibility with Symfony 3. - My 4.0 branch is not finished yet: I have to test the commands behavior with the new directory structure and some configuration properties should be moved from configuration file to
.ENVfile. I plan to do this in a couple of days. - Since Symfony 4 directory structure is different from previous versions, there are some changes in PropelBundle 4.0 branch that should be documented. I plan to write a new recipe for Propel cookbook at the end of the next week.
- Last but not the least, I'm working on a Symfony flex recipe for PropelBundle, so that we could install PropelBundle and Propel simply with
composer require propel.
Please, have a little patience again 😄
I too have been working on a 4.0 branch for this. Please feel free to use any of my work on this. I have implemented registering of the commands, and have tested most of them. My unit tests all come back green. One of my concerns of your current work is setting all of the services to be public, which isn't considered best practices within symfony. Also your changes in Command/AbstractCommand.php are unnecessary if files are placed in the proper place (schemas will be found and moved to the cache if placed in src/propel/*schema.xml).
@kingchills your work is almost perfect, and it's compatible with Symfony 3.4, too! Why don't you submit a PR? Imho, your 4.0 branch is already mergeable, as is.
@cristianoc72 Consider it done.
Shall we continue here?
It's quite old, I think this pull request has to been fully reviewed on new versions. Personnally, i don't use it anymore, maybe i should close this PR too.
Actually, https://github.com/SkyFoxvn/PropelBundle will most likely be the follower of this now.