ContainerAwareLoader

ContainerAwareLoader

class ContainerAwareLoader extends Loader

Doctrine data fixtures loader that injects the service container into fixture objects that implement ContainerAwareInterface.

Note: Use of this class requires the Doctrine data fixtures extension, which is a suggested dependency for Symfony.

Methods

__construct(ContainerInterface $container)

Constructor.

addFixture(FixtureInterface $fixture)

{@inheritdoc}

Details

__construct(ContainerInterface $container)

Constructor.

Parameters

ContainerInterface $container A ContainerInterface instance

addFixture(FixtureInterface $fixture)

{@inheritdoc}

Parameters

FixtureInterface $fixture

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.3/Symfony/Bridge/Doctrine/DataFixtures/ContainerAwareLoader.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部