-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Description
I'm not entirely sure whether this is a bug. I'm trying to build a container manually with FrameworkBundle, TwigBundle and another bundle loaded with 2.7:
https://github.com/puli/symfony-bundle/blob/master/Tests/ContainerTest.php#L76
Upon running the test suite, the following error happens:
- Puli\SymfonyBundle\Tests\ContainerTest::testTwigContainer
Symfony\Component\DependencyInjection\Exception\InvalidArgumentException: The configure callable for class "Twig_Environment" is not a callable./home/bernhard/Entwicklung/Web/puli/symfony-bundle/vendor/symfony/dependency-injection/ContainerBuilder.php:989
/home/bernhard/Entwicklung/Web/puli/symfony-bundle/vendor/symfony/dependency-injection/ContainerBuilder.php:490
/home/bernhard/Entwicklung/Web/puli/symfony-bundle/Tests/ContainerTest.php:67
Apparently, the Definition
object in the [Definition, 'configure']
callable is not resolved prior to checking whether the callable is valid. I don't understand where this should be happening. Is this a bug or a mistake on my side?
To reproduce, you can clone https://github.com/puli/symfony-bundle and run phpunit
.