Skip to content

Enable container.dumper.inline_class_loader param by default #241

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
1 commit merged into from
Nov 10, 2017
Merged

Enable container.dumper.inline_class_loader param by default #241

1 commit merged into from
Nov 10, 2017

Conversation

nicolas-grekas
Copy link
Member

Q A
License MIT

Sibling to symfony/symfony#24872

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Pull request passes validation.

@@ -37,6 +37,7 @@ public function registerBundles()
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader)
{
$container->setParameter('container.autowiring.strict_mode', true);
$container->setParameter('container.dumper.inline_class_loader', true);
Copy link
Member

Choose a reason for hiding this comment

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

Can't it be set to on by default in 4.0?

Copy link
Member Author

Choose a reason for hiding this comment

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

it is in the flex recipe, would be a hard BC break otherwise

Copy link
Member

Choose a reason for hiding this comment

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

We should still work on making this on by default in the future (we could trigger a deprecation notice in 3.4 if the parameter is not set explicitly to either true or false, saying that the default behavior in 4.0 would be to enable this).

container.autowiring.strict_mode does not suffer from this, because it is just about disabling a BC layer (so it is gone entirely in 4.0)

@nicolas-grekas
Copy link
Member Author

rebased

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Pull request passes validation.

@ghost ghost merged commit 4861a36 into symfony:master Nov 10, 2017
ghost pushed a commit that referenced this pull request Nov 10, 2017
@nicolas-grekas nicolas-grekas deleted the container-inline branch November 30, 2017 17:44
leofeyer pushed a commit to contao/contao that referenced this pull request Jan 9, 2020
…1162)

Description
-----------

These parameters are on by default since Symfony 3.3
symfony/recipes#241

Commits
-------

f653aee Remove obsolete parameters
d64dda0 Re-add container.dumper.inline_class_loader
leofeyer pushed a commit to contao/manager-bundle that referenced this pull request Jan 9, 2020
…1162)

Description
-----------

These parameters are on by default since Symfony 3.3
symfony/recipes#241

Commits
-------

f653aeeb Remove obsolete parameters
d64dda0d Re-add container.dumper.inline_class_loader
This pull request was closed.
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.

4 participants