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;
    }