ContainerAwareFixture.php 810B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bridge\Doctrine\Tests\Fixtures;
  11. use Doctrine\Common\DataFixtures\FixtureInterface;
  12. use Doctrine\Common\Persistence\ObjectManager;
  13. use Symfony\Component\DependencyInjection\ContainerInterface;
  14. use Symfony\Component\DependencyInjection\ContainerAwareInterface;
  15. class ContainerAwareFixture implements FixtureInterface, ContainerAwareInterface
  16. {
  17. public $container;
  18. public function setContainer(ContainerInterface $container = null)
  19. {
  20. $this->container = $container;
  21. }
  22. public function load(ObjectManager $manager)
  23. {
  24. }
  25. }