Skip to content

Add symfony 5 support #204

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

Merged

Conversation

alexander-schranz
Copy link
Contributor

@alexander-schranz alexander-schranz commented Feb 5, 2020

This is still in process.

TODO

  • Use symfony phpunit bridge to support this wide range of symfony and php versions
  • Use webmozart/assert instead of phpunit assert for supporting different version of php and symfony
  • Update Symfony EventDispatcher
  • Update Symfony Console
  • Make tests green 🙏

@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch from f39def0 to 0fa310c Compare February 5, 2020 12:53
@dantleech
Copy link
Member

I think we can bump the minimum PHP requirement to 7.2 - this PR introduces support for Symfony 5 which has that requirement, and anybody who wants to use Symfony 4 will just get the previous version of this package.

That should solve some of the build issues (if not all of them)!

@dbu
Copy link
Member

dbu commented Feb 6, 2020

seems fair to me. you could still support php 7.0 or 7.1 with older symfony versions, but i don't think that is an important consideration - the shell seems to be quite stable, so no problem for people stuck on old php to use an old version.

@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch 2 times, most recently from 4444f55 to fda02ea Compare February 6, 2020 12:35
@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch from fda02ea to ce30ef5 Compare February 6, 2020 12:40
@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch from ce30ef5 to 4b20e85 Compare February 6, 2020 12:45
@alexander-schranz
Copy link
Contributor Author

@dantleech do you have maybe a hint what could cause the errors which are appearing in embedded and standalone tests? I'm very unfamiliar with behat 🙈

@dantleech
Copy link
Member

hmm, Jackrabbit just returns 503 both with 2.18 and 2.8 - @dbu do you recall what error you had with the ODM?

@alexander-schranz alexander-schranz changed the title WIP: Add symfony 5 support Add symfony 5 support Feb 6, 2020
@alexander-schranz
Copy link
Contributor Author

alexander-schranz commented Feb 6, 2020

@dantleech downgraded the travis dist and it should work now I hope 🙏

@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch from 1f49a51 to 6989bbb Compare February 6, 2020 21:14
@dantleech
Copy link
Member

dantleech commented Feb 6, 2020

downgraded the travis dist and it should work now I hope

Well found - fixed forever! 😄 strange that it doesn't work on newer dists

@alexander-schranz
Copy link
Contributor Author

alexander-schranz commented Feb 6, 2020

@dantleech sadly php 7.2 get stuck on the following test:

Feature: Edit a node type

    In order to modify a node type definition

    As a user that is logged into the shell

    I should be able to run a command which launches an external editor to edit the CND as a text file

if I read that it sounds to me the editor is really started and never closed and thats why it don't continue or what do you think?

EDIT: jackolope/jackolope need atleast 1.3.4 for PHP 7.2

@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch 2 times, most recently from 6750364 to 99990fd Compare February 6, 2020 23:22
@alexander-schranz
Copy link
Contributor Author

@dantleech Finally I found the working prefer lowest dependencies.

Yeah

@alexander-schranz alexander-schranz force-pushed the enhancement/symfony-5-support branch from 99990fd to 3fe5564 Compare February 6, 2020 23:28
@dantleech
Copy link
Member

🎉 well done :)

@dantleech dantleech merged commit 53135d4 into phpcr:master Feb 7, 2020
@alexander-schranz alexander-schranz deleted the enhancement/symfony-5-support branch February 7, 2020 09:21
@dantleech
Copy link
Member

Thanks again, let me know when you want a tag

@alexander-schranz
Copy link
Contributor Author

@dantleech Tag would be great or atleast an update of the branch alias in the composer.json :)

@dantleech
Copy link
Member

Can you assert that master works with f.e. Sulu?

@alexander-schranz
Copy link
Contributor Author

@dantleech not yet there still to many dependencies which are not yet compatible with symfony 5 🙈

@alexander-schranz
Copy link
Contributor Author

@dantleech tested can be released :)

@alexander-schranz
Copy link
Contributor Author

@dantleech could we create a release for this and the phpcr-migrations-bundle?

@dantleech
Copy link
Member

Release 1.2.0 🎉 sorry for the delay

@dantleech
Copy link
Member

Also 1.2.0 of migrations

@alexander-schranz
Copy link
Contributor Author

@dantleech Thank you 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants