forked from baldurrensch/AliceBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AbstractLoader.php
52 lines (46 loc) · 1.31 KB
/
AbstractLoader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/*
* This file is part of the Hautelook\AliceBundle package.
*
* (c) Baldur Rensch <brensch@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Hautelook\AliceBundle\Doctrine\DataFixtures;
use Doctrine\Common\Persistence\ObjectManager;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Helper for declaring doctrine data loaders.
*
* @author Baldur Rensch <brensch@gmail.com>
* @author Théo FIDRY <theo.fidry@gmail.com>
* @author Sullivan Senechal <soullivaneuh@gmail.com>
*/
abstract class AbstractLoader implements ContainerAwareInterface, LoaderInterface
{
/**
* @var ContainerInterface
*/
protected $container;
/**
* {@inheritdoc}
*
* Use Symfony\Component\DependencyInjection\ContainerAwareTrait instead when dropping SF 2.3 and PHP 5.3 support.
*/
public function setContainer(ContainerInterface $container = null)
{
$this->container = $container;
}
/**
* Loads the fixtures files.
*
* @param ObjectManager $objectManager
*
* @return \object[] Persisted objects
*/
public function load(ObjectManager $objectManager)
{
}
}