diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php index c41ba2eeb3..77d10e84c1 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php @@ -106,7 +106,6 @@ class TwigExtension extends Extension foreach ($bundle['paths'] as $path) { $twigFilesystemLoaderDefinition->addMethodCall('addPath', array($path, $namespace)); } - $container->addResource(new FileExistenceResource($dir)); } if (is_dir($dir = $container->getParameter('kernel.root_dir').'/Resources/views')) { diff --git a/src/Symfony/Component/Form/Tests/FormRegistryTest.php b/src/Symfony/Component/Form/Tests/FormRegistryTest.php index 952cd046ff..a42e172786 100644 --- a/src/Symfony/Component/Form/Tests/FormRegistryTest.php +++ b/src/Symfony/Component/Form/Tests/FormRegistryTest.php @@ -118,6 +118,9 @@ class FormRegistryTest extends \PHPUnit_Framework_TestCase $this->registry->getType('stdClass'); } + /** + * @group legacy + */ public function testLegacyGetTypeFromExtension() { $type = new LegacyFooType();