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

Symfony 6 support #355

Merged
merged 1 commit into from
Jun 19, 2022
Merged

Symfony 6 support #355

merged 1 commit into from
Jun 19, 2022

Conversation

GwendolenLynch
Copy link
Contributor

@GwendolenLynch GwendolenLynch commented Jun 18, 2022

Change Log

Added

  • Symfony 6 constraints
  • Interfaced type hints

Fixed

Changed

  • Change ref() to service()
  • symfony/dependency-injection minimum version ^5.1
  • symfony/framework-bundle (dev) minimum version ^5.3
  • symfony/form minimum version ^5.3

Updated

  • Pass FormFactoryInterface to holiday controller & remove container access

Removed

  • Symfony 4 support

Deprecated

Security


Description

This PR updates the bundle for Symfony 6.

- Updated composer.json to add SF ^6.0
- Add interfaced type hints
- Pass FormFactoryInterface to holiday controller & only use container access on SF 4.4
- Create \Aeon\Symfony\AeonBundle\DependencyInjection\Loader\Configurator\LegacyConfigurator to wrap ref() deprecation/removal
- Change ref() to service()
- symfony/dependency-injection minimum ^5.1
- symfony/form minimum ^5.3
@norberttech
Copy link
Member

Thank you for the contribution @GwendolenLynch!
Could you please take a look at failing tests before we can merge this?

@GwendolenLynch
Copy link
Contributor Author

You're most welcome, @norberttech 😺

With coffee in hand I did some research and local testing, and it seems that:

  • Symfony DI needs a minimum 5.1.0 (ref() -> service())
  • Framework Bundle & Form need a minimum of 5.3.0 (session.storage deprecation)

Let's see what CI thinks.

@GwendolenLynch
Copy link
Contributor Author

Also, after looking into your question about Composer plugins in aeon-php/rate-limiter#63, I have removed the config change in this PR as well.

@GwendolenLynch GwendolenLynch force-pushed the symfony-6 branch 3 times, most recently from eaf6d03 to 4474fa3 Compare June 19, 2022 08:12
@GwendolenLynch
Copy link
Contributor Author

GwendolenLynch commented Jun 19, 2022

I can't docblock some days. I've added the missing * and SA should now pass 🙄 😊

@norberttech norberttech merged commit 69222b3 into aeon-php:1.x Jun 19, 2022
@norberttech
Copy link
Member

Thanks ✌️🙌

@GwendolenLynch GwendolenLynch deleted the symfony-6 branch June 19, 2022 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants