1 | <?php |
||
19 | class FixturesLoader |
||
20 | { |
||
21 | /** |
||
22 | * This function finds the time when the data blocks of a class definition |
||
23 | * file were being written to, that is, the time when the content of the |
||
24 | * file was changed. |
||
25 | * |
||
26 | * @param string $class The fully qualified class name of the fixture class to |
||
27 | * check modification date on. |
||
28 | * |
||
29 | * @return \DateTime|null |
||
30 | */ |
||
31 | 3 | protected static function getFixtureLastModified($class) |
|
45 | |||
46 | /** |
||
47 | * Determine if the Fixtures that define a database backup have been |
||
48 | * modified since the backup was made. |
||
49 | * |
||
50 | * @param array $classNames The fixture classnames to check |
||
51 | * @param string $backup The fixture backup SQLite database file path |
||
52 | * |
||
53 | * @return bool TRUE if the backup was made since the modifications to the |
||
54 | * fixtures; FALSE otherwise |
||
55 | */ |
||
56 | 7 | public static function isBackupUpToDate(array $classNames, $backup, $container) |
|
74 | |||
75 | /** |
||
76 | * Locate fixture files. |
||
77 | * |
||
78 | * @param array $paths |
||
79 | * |
||
80 | * @return array $files |
||
81 | */ |
||
82 | 6 | public static function locateResources($paths, $container) |
|
99 | |||
100 | /** |
||
101 | * Retrieve Doctrine DataFixtures loader. |
||
102 | * |
||
103 | * @param ContainerInterface $container |
||
104 | * @param array $classNames |
||
105 | * |
||
106 | * @return Loader |
||
107 | */ |
||
108 | 32 | public static function getFixtureLoader(ContainerInterface $container, array $classNames) |
|
127 | |||
128 | /** |
||
129 | * Load a data fixture class. |
||
130 | * |
||
131 | * @param Loader $loader |
||
132 | * @param string $className |
||
133 | */ |
||
134 | 10 | protected static function loadFixtureClass($loader, $className) |
|
152 | } |
||
153 |