Skip to content

[DependencyInjection] Configurator callable not resolved #14834

@webmozart

Description

@webmozart

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:

  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy