8000 [TwigBundle] Minor cleanup by yceruto · Pull Request #37296 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBundle] Minor cleanup #37296

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
merged 1 commit into from
Jun 16, 2020
Merged

Conversation

yceruto
Copy link
Member
@yceruto yceruto commented Jun 16, 2020
Q A
Branch? master
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

@@ -42,21 +42,13 @@ public function process(ContainerBuilder $container)
$viewDir = \dirname((new \ReflectionClass('Symfony\Bridge\Twig\Extension\FormExtension'))->getFileName(), 2).'/Resources/views';
$templateIterator = $container->getDefinition('twig.template_iterator');
$templatePaths = $templateIterator->getArgument(1);
$cacheWarmer = null;
if ($container->hasDefinition('twig.cache_warmer')) {
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -90,10 +76,6 @@ public function process(ContainerBuilder $container)
}
}

if (!$container->has('http_kernel')) {
$container->removeDefinition('twig.controller.preview_error');
Copy link
Member Author

Choose a reason for hiding this comment

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

@fabpot
Copy link
Member
fabpot commented Jun 16, 2020

Thank you @yceruto.

@fabpot fabpot merged commit bcccb14 into symfony:master Jun 16, 2020
@yceruto yceruto deleted the twig_bundle_cleanup branch June 16, 2020 11:42
@yceruto yceruto added this to the next milestone Jun 16, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.2 Oct 5, 2020
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.

4 participants
0