Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 332ee7e

Browse filesBrowse files
committed
Another iteration
1 parent a043bf7 commit 332ee7e
Copy full SHA for 332ee7e

File tree

Expand file treeCollapse file tree

4 files changed

+3
-31
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+3
-31
lines changed

‎src/Symfony/Bridge/Twig/Tests/ErrorRenderer/TwigErrorRendererTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/ErrorRenderer/TwigErrorRendererTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function testCliRenderer()
4040
$exception = new NotFoundHttpException();
4141
$twig = new Environment(new ArrayLoader([]));
4242

43-
$exception = (new TwigErrorRenderer($twig, null, false))->render($exception);
43+
$exception = (new TwigErrorRenderer($twig, new CliErrorRenderer(), false))->render($exception);
4444

4545
$exceptionHeaders = $exception->getHeaders();
4646
if (isset($exceptionHeaders['Content-Type'])) {

‎src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ public function load(array $configs, ContainerBuilder $container): void
4242
{
4343
$loader = new PhpFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
4444
$loader->load('twig.php');
45-
$loader->load('twig_test.php');
4645

4746
if (method_exists(Environment::class, 'resetGlobals')) {
4847
$container->getDefinition('twig')->addTag('kernel.reset', ['method' => 'resetGlobals']);

‎src/Symfony/Bundle/TwigBundle/Resources/config/twig_test.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/Resources/config/twig_test.php
-29Lines changed: 0 additions & 29 deletions
This file was deleted.

‎src/Symfony/Bundle/TwigBundle/TwigBundle.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/TwigBundle/TwigBundle.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Bundle\TwigBundle;
1313

14+
use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ErrorRendererPass;
1415
use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\ExtensionPass;
1516
use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\RuntimeLoaderPass;
1617
use Symfony\Bundle\TwigBundle\DependencyInjection\Compiler\TwigEnvironmentPass;
@@ -36,6 +37,7 @@ public function build(ContainerBuilder $container): void
3637
$container->addCompilerPass(new TwigEnvironmentPass());
3738
$container->addCompilerPass(new TwigLoaderPass());
3839
$container->addCompilerPass(new RuntimeLoaderPass(), PassConfig::TYPE_BEFORE_REMOVING);
40+
$container->addCompilerPass(new ErrorRendererPass());
3941
}
4042

4143
public function registerCommands(Application $application): void

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.