vipsoft / DoctrineDataFixturesExtension

Doctrine Data Fixtures Extension for Behat
MIT License
21 stars 35 forks source link

Allow fixtures to successfully implement ContainerAwareInterface #9

Closed ebonhand09 closed 12 years ago

ebonhand09 commented 12 years ago

This patch injects Symfony's container into the fixture as per the behaviour expected from app/console doctrine:fixtures:load

This allows more complex fixtures (e.g. those making use of FOSUserBundle or similar services) to be loaded individually (with autoload: false)

The code mimics the code found in Symfony/Bundle/FrameworkBundle/Controller/ControllerResolver.php (around line 79)

robocoder commented 12 years ago

Is this still applicable after commit 8f7dcd6e54?

ebonhand09 commented 12 years ago

I'll run some tests and get back to you shortly

ebonhand09 commented 12 years ago

Your commit 8f7dcd6 appears to have resolved the issue without requiring my match - thanks

robocoder commented 12 years ago

Thanks.