Skip to content

[DI] Switch container to Laravel - final step 🥳#4698

Merged
TomasVotruba merged 10 commits intomainfrom
tv-container-run-10
Aug 15, 2023
Merged

[DI] Switch container to Laravel - final step 🥳#4698
TomasVotruba merged 10 commits intomainfrom
tv-container-run-10

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Aug 7, 2023

Todo after merge

  • add services() fallback with trigger error to give feedback
  • extract Laravel container utils for service removal from container
  • add test for removed rule in skip()

@TomasVotruba TomasVotruba changed the title tv container run 10 [WIP] tv container run 10 Aug 7, 2023
@TomasVotruba TomasVotruba changed the title [WIP] tv container run 10 [DX] Make use of Laravel container in few tests - step #10 Aug 7, 2023
@TomasVotruba TomasVotruba force-pushed the tv-container-run-10 branch 18 times, most recently from c67d2e6 to 21bc0af Compare August 7, 2023 13:28
@TomasVotruba TomasVotruba changed the title [DX] Make use of Laravel container in few tests - step #10 [DX] Make use of Laravel container - step #10 Aug 7, 2023
@TomasVotruba TomasVotruba force-pushed the tv-container-run-10 branch 8 times, most recently from 6d5f849 to 718316a Compare August 8, 2023 09:59
Copy link
Copy Markdown
Contributor

@staabm staabm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really like it. just commented a few nits.

@TomasVotruba
Copy link
Copy Markdown
Member Author

The night is coming... let's do this 🚀

@TomasVotruba
Copy link
Copy Markdown
Member Author

First rector build on Laravel DI is here:

So far, the vendor is downgraded correctly ✔️ Now it's time to remove the symfony dependencies

@TomasVotruba
Copy link
Copy Markdown
Member Author

Here is list of removed packages, including composer-unused that also required symfony di:

Screenshot from 2023-08-16 00-44-06

@TomasVotruba
Copy link
Copy Markdown
Member Author

TomasVotruba commented Aug 17, 2023

Here it the rector/rector deploy diff commit without all the Symfony packages:

image


This means we don't have to downgrade all these packages anymore and can avoid the Symfony container patching 🥳

@TomasVotruba
Copy link
Copy Markdown
Member Author

TomasVotruba commented Aug 24, 2023

Here is the post about extension upgrade and size difference between containers 🥳

https://getrector.com/blog/rector-018-from-symfony-container-to-laravel-and-how-to-upgrade-your-extensions

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