public function build()
    {
        $files = $this->iterator->getFiles();
        $generators = $this->generatorRegistry->generators();

        foreach ($files as $file) {
            foreach ($generators as $generator) {
                $generator->parseFile($file);
            }
        }

        foreach ($generators as $generator) {
            $generator->generate();
        }
    }
public function build()
    {
        $files = $this->iterator->getFiles();
        $generators = $this->generatorRegistry->generators();

        foreach ($files as $file) {
            foreach ($generators as $generator) {
                $generator->parseFile($file);
            }
        }

        foreach ($generators as $generator) {
            $generator->generate();
        }
    }
public function build ( ) { $ files = $ this -> iterator -> getFiles ( ) ; $ generators = $ this -> generatorRegistry -> generators ( ) ; foreach ( $ files as $ file ) { foreach ( $ generators as $ generator ) { $ generator -> parseFile ( $ file ) ; } } foreach ( $ generators as $ generator ) { $ generator -> generate ( ) ; } }
Index build method.

Its responsibility is to call the parseFile
and generate methods from generator.
Index build method .