src/Database/Fixture/Yaml.php
protected function parse($path): array
    {
        $fixtures = array_key_exists('FIXTURES', $_ENV) ? $_ENV['FIXTURES'] : 'dev';
        $files = glob(str_replace('{fixtures}', $fixtures, $path));

        if (!$files) {
            throw new LogicException('Fixtures path "'.$path.'" yields no files.');
        }

        $objects = [];

        foreach ($files as $file) {
            foreach (Objects::parseFile($file) as $object) {
                $objects[] = $object;
            }
        }

        return $objects;
    }
protected function parse($path): array
    {
        $fixtures = array_key_exists('FIXTURES', $_ENV) ? $_ENV['FIXTURES'] : 'dev';
        $files = glob(str_replace('{fixtures}', $fixtures, $path));

        if (!$files) {
            throw new LogicException('Fixtures path "'.$path.'" yields no files.');
        }

        $objects = [];

        foreach ($files as $file) {
            foreach (Objects::parseFile($file) as $object) {
                $objects[] = $object;
            }
        }

        return $objects;
    }
protected function parse ( $ path ) : array { $ fixtures = array_key_exists ( 'FIXTURES' , $ _ENV ) ? $ _ENV [ 'FIXTURES' ] : 'dev' ; $ files = glob ( str_replace ( '{fixtures}' , $ fixtures , $ path ) ) ; if ( ! $ files ) { throw new LogicException ( 'Fixtures path "' . $ path . '" yields no files.' ) ; } $ objects = [ ] ; foreach ( $ files as $ file ) { foreach ( Objects :: parseFile ( $ file ) as $ object ) { $ objects [ ] = $ object ; } } return $ objects ; }
Parse resource files to objects

@param string $path
@return array
@throws \DomainException
@throws \LogicException
Parse resource files to objects