src/Kunstmaan/FixturesBundle/Loader/FixtureLoader.php
private function initFixtures($data)
    {
        $fixtures = [];
        $parser = $this->container->get('kunstmaan_fixtures.parser.parser');

        foreach ($data as $file) {
            foreach ($file as $class => $specs) {
                foreach ($specs as $name => $options) {
                    $fixture = new Fixture($name, $class, $options);
                    $fixtures = $parser->parseSpec($name, $fixture, $fixtures);
                }
            }
        }

        return $fixtures;
    }
private function initFixtures($data)
    {
        $fixtures = [];
        $parser = $this->container->get('kunstmaan_fixtures.parser.parser');

        foreach ($data as $file) {
            foreach ($file as $class => $specs) {
                foreach ($specs as $name => $options) {
                    $fixture = new Fixture($name, $class, $options);
                    $fixtures = $parser->parseSpec($name, $fixture, $fixtures);
                }
            }
        }

        return $fixtures;
    }
private function initFixtures ( $ data ) { $ fixtures = [ ] ; $ parser = $ this -> container -> get ( 'kunstmaan_fixtures.parser.parser' ) ; foreach ( $ data as $ file ) { foreach ( $ file as $ class => $ specs ) { foreach ( $ specs as $ name => $ options ) { $ fixture = new Fixture ( $ name , $ class , $ options ) ; $ fixtures = $ parser -> parseSpec ( $ name , $ fixture , $ fixtures ) ; } } } return $ fixtures ; }
Parse specs and initiate fixtures

@param $data

@return array|mixed
Parse specs and initiate fixtures