1 | <?php |
||
11 | class YamlLoader |
||
12 | { |
||
13 | protected $bundles; |
||
14 | |||
15 | /** |
||
16 | * |
||
17 | * @var type |
||
18 | */ |
||
19 | protected $kernel; |
||
20 | |||
21 | /** |
||
22 | * Doctrine entity manager |
||
23 | * @var type |
||
24 | */ |
||
25 | protected $object_manager; |
||
26 | |||
27 | protected $acl_manager = null; |
||
28 | |||
29 | /** |
||
30 | * Array of all yml files containing fixtures that should be loaded |
||
31 | * @var type |
||
32 | */ |
||
33 | protected $fixture_files = array(); |
||
34 | |||
35 | /** |
||
36 | * Maintains references to already created objects |
||
37 | * @var type |
||
38 | */ |
||
39 | protected $references = array(); |
||
40 | |||
41 | /** |
||
42 | * The directory containing the fixtures files |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | protected $directory; |
||
47 | |||
48 | public function __construct(KernelInterface $kernel, $bundles, $directory) |
||
54 | |||
55 | /** |
||
56 | * |
||
57 | * @param type $manager |
||
58 | */ |
||
59 | public function setAclManager($manager = null) |
||
63 | |||
64 | /** |
||
65 | * Returns a previously saved reference |
||
66 | * @param type $reference_name |
||
67 | * @return type |
||
68 | */ |
||
69 | public function getReference($reference_name) |
||
73 | |||
74 | /** |
||
75 | * Sets a reference to an object |
||
76 | * @param type $name |
||
77 | * @param type $object |
||
78 | */ |
||
79 | public function setReference($name, $object) |
||
83 | |||
84 | /** |
||
85 | * Gets all fixtures files |
||
86 | */ |
||
87 | protected function loadFixtureFiles() |
||
99 | |||
100 | /** |
||
101 | * Loads the fixtures file by file and saves them to the database |
||
102 | */ |
||
103 | public function loadFixtures() |
||
126 | |||
127 | /** |
||
128 | * Remove all fixtures from the database |
||
129 | */ |
||
130 | public function purgeDatabase($persistence, $databaseName = null, $withTruncate = false) |
||
162 | |||
163 | /* |
||
164 | * Returns the doctrine persister for the given persistence layer |
||
165 | * @return ManagerRegistry |
||
166 | */ |
||
167 | public function getPersister($persistence) |
||
176 | |||
177 | /** |
||
178 | * @return string classname |
||
179 | */ |
||
180 | public function getFixtureClass($persistence) |
||
189 | |||
190 | /** |
||
191 | * @return the service with given id |
||
192 | */ |
||
193 | public function getService($service_id) |
||
197 | } |
||
198 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..