Skip to content
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

Add Symfony 5 compatibility #24

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Add Symfony 5 compatibility #24

wants to merge 7 commits into from

Conversation

tomvlk
Copy link

@tomvlk tomvlk commented Apr 21, 2021

Changes in the configuration loader will add support for Symfony 5. Of course this might be breaking for other versions so it must be a new major version.

@tomvlk
Copy link
Author

tomvlk commented Apr 21, 2021

Correct, solved it. It needs extensive testing, something that I haven't done at the moment.

@tomvlk
Copy link
Author

tomvlk commented Apr 21, 2021

Btw, don't merge this yet as I will add more changes most likely once I get a project migrated.

…mpatibility)

Unfortunately losing the cleanness but I had to remove the nested for .. if for compatibility issues, and the 'spaceless' filters as it's now applied differently which is not backward compatible.
@tomvlk
Copy link
Author

tomvlk commented Apr 22, 2021

@lifo101 I got it working in Symfony 5 right now. It still needs testing in different 4.x versions and < 4.0 versions. It would be nice if you could help with that maybe, and give maybe additional feedback. I had to remove several things from the template like spaceless filter (as it's now implemented differently in twig, but unable to apply this due to backward compatibility reasons). And I had to undo the nested for .. if clause as it's now working with filters in the new Twig versions.

@tomvlk tomvlk requested a review from lifo101 April 22, 2021 08:38
@benstinton
Copy link

benstinton commented Dec 21, 2021

@lifo101 thank you very much for typeahead-bundle, have used it lots over the years. Looking forward to https://github.com/lifo101/autocomplete-bundle , will definitely check it out as soon as you have tagged a release.
In the mean time it would be great to eek a little bit more out of typeahead-bundle with this PR if it works.
@tomvlk great work, I'd be more than happy to test this on a SF4 build with diverse uses of TypeaheadType.

Any feedback as soon as would be appreciated, as working on an SF4 upgrade right now and having to decide wether to rip out typeahead or not.

@lifo101
Copy link
Owner

lifo101 commented Dec 21, 2021

I won't be able to do much with this due to the holidays and vacation until after the new year.

@benstinton
Copy link

Just for feedback, I've now got this branch deployed in production environments as it working well in Symfony 4.4

@tomvlk
Copy link
Author

tomvlk commented Aug 29, 2023

Would be nice if this can get into the official release soon.
Thanks all for the work on the repository.

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