ApiGen\DI\ApiGenExtension::setupGeneratorQueue PHP Method

setupGeneratorQueue() private method

private setupGeneratorQueue ( )
    private function setupGeneratorQueue()
    {
        $builder = $this->getContainerBuilder();
        $generator = $builder->getDefinition($builder->getByType(GeneratorQueueInterface::class));
        $services = $builder->findByType(TemplateGeneratorInterface::class);
        ksort($services, SORT_NATURAL);
        foreach ($services as $definition) {
            $generator->addSetup('addToQueue', ['@' . $definition->getClass()]);
        }
    }