| 1 | <?php |
||
| 20 | final class LocatorRegistry implements FixtureLocatorInterface |
||
| 21 | { |
||
| 22 | use NotClonableTrait; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @var FixtureLocatorInterface[] |
||
| 26 | */ |
||
| 27 | private $locators; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param FixtureLocatorInterface[] $locators |
||
| 31 | */ |
||
| 32 | public function __construct(array $locators) |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Locate fixture files found matching the environment name. |
||
| 39 | * |
||
| 40 | * For example, if the given fixture path is 'Resources/fixtures', it will try to locate |
||
| 41 | * the files in the 'Resources/fixtures/*.dev.yml' for each bundle passed ('dev' being the |
||
| 42 | * environment). |
||
| 43 | * |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | public function locateFiles(array $bundles, string $environment): array |
||
| 56 | } |
||
| 57 |