public function locateFiles(array $bundles, string $environment): array
    {
        $fixtureFiles = array_merge(
            ...array_map(
                function (string $rootDir) use ($environment): array {
                    return $this->doLocateFiles($rootDir, $environment);
                },
                $this->rootDirs
            ),
            ...array_map(
                function (BundleInterface $bundle) use ($environment): array {
                    return $this->doLocateFiles($bundle->getPath(), $environment);
                },
                $bundles
            )
        );

        return $fixtureFiles;
    }