Skip to content

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 29, 2021

Q A
Branch? 6.0
Bug fix? no
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

@@ -235,7 +235,7 @@ class FrameworkExtension extends Extension
public function load(array $configs, ContainerBuilder $container)
{
if (!class_exists(InstalledVersions::class)) {
trigger_deprecation('symfony/framework-bundle', '5.4', 'Configuring Symfony without the Composer Runtime API is deprecated. Consider upgrading to Composer 2.');
throw new LogicException('The Composer Runtime API is required to configure Symfony. Consider upgrading to Composer 2.');
Copy link
Contributor

Choose a reason for hiding this comment

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

As now it throws ex, maybe the word Consider is no more appropriate, but more You must upgrade no?

Copy link
Member

Choose a reason for hiding this comment

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

we usually use "should", so "consider" is fine to me

Copy link
Member

Choose a reason for hiding this comment

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

This should be done using requirements on composer-runtime-api in the composer.json, which will then mean that this exception is never triggered...

@xabbuh xabbuh force-pushed the pr-43804 branch 2 times, most recently from 1dfb031 to 3f1d476 Compare October 29, 2021 09:21
@xabbuh
Copy link
Member Author

xabbuh commented Oct 29, 2021

I missed that we already have #43788 for this

@xabbuh xabbuh closed this Oct 29, 2021
@xabbuh xabbuh deleted the pr-43804 branch October 29, 2021 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants