diff --git a/src/Symfony/Bridge/Doctrine/DataFixtures/Loader.php b/src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php similarity index 68% rename from src/Symfony/Bridge/Doctrine/DataFixtures/Loader.php rename to src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php index 07c72222db..0b1052719f 100644 --- a/src/Symfony/Bridge/Doctrine/DataFixtures/Loader.php +++ b/src/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.php @@ -12,21 +12,29 @@ namespace Symfony\Bridge\Doctrine\DataFixtures; use Doctrine\Common\DataFixtures\FixtureInterface; -use Doctrine\Common\DataFixtures\Loader as BaseLoader; +use Doctrine\Common\DataFixtures\Loader; use Symfony\Component\DependencyInjection\ContainerAwareInterface; use Symfony\Component\DependencyInjection\ContainerInterface; /** - * Doctrine data fixtures loader that injects the service container for - * fixtures objects that implement ContainerAwareInterface. + * Doctrine data fixtures loader that injects the service container into + * fixture objects that implement ContainerAwareInterface. * - * Note: This class cannot be used without the Doctrine data fixtures extension, - * which is not listed as a required dependency for Symfony. + * Note: Use of this class requires the Doctrine data fixtures extension, which + * is a suggested dependency for Symfony. */ -class Loader extends BaseLoader +class ContainerAwareLoader extends Loader { + /** + * @var ContainerInterface + */ private $container; + /** + * Constructor. + * + * @param ContainerInterface $container A ContainerInterface instance + */ public function __construct(ContainerInterface $container) { $this->container = $container;