[DoctrineBridge] Rename data fixtures loader class
This commit is contained in:
parent
af848051ea
commit
c754f28fcb
@ -12,21 +12,29 @@
|
|||||||
namespace Symfony\Bridge\Doctrine\DataFixtures;
|
namespace Symfony\Bridge\Doctrine\DataFixtures;
|
||||||
|
|
||||||
use Doctrine\Common\DataFixtures\FixtureInterface;
|
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\ContainerAwareInterface;
|
||||||
use Symfony\Component\DependencyInjection\ContainerInterface;
|
use Symfony\Component\DependencyInjection\ContainerInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Doctrine data fixtures loader that injects the service container for
|
* Doctrine data fixtures loader that injects the service container into
|
||||||
* fixtures objects that implement ContainerAwareInterface.
|
* fixture objects that implement ContainerAwareInterface.
|
||||||
*
|
*
|
||||||
* Note: This class cannot be used without the Doctrine data fixtures extension,
|
* Note: Use of this class requires the Doctrine data fixtures extension, which
|
||||||
* which is not listed as a required dependency for Symfony.
|
* is a suggested dependency for Symfony.
|
||||||
*/
|
*/
|
||||||
class Loader extends BaseLoader
|
class ContainerAwareLoader extends Loader
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* @var ContainerInterface
|
||||||
|
*/
|
||||||
private $container;
|
private $container;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param ContainerInterface $container A ContainerInterface instance
|
||||||
|
*/
|
||||||
public function __construct(ContainerInterface $container)
|
public function __construct(ContainerInterface $container)
|
||||||
{
|
{
|
||||||
$this->container = $container;
|
$this->container = $container;
|
Reference in New Issue
Block a user