Puli\Manager\Factory\FactoryManagerImpl::__construct PHP Метод

__construct() публичный Метод

Creates a new factory generator.
public __construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Manager\Api\Factory\Generator\GeneratorRegistry $generatorRegistry, Puli\Manager\Php\ClassWriter $classWriter, ModuleList $modules = null, Puli\Manager\Api\Server\ServerCollection $servers = null )
$context Puli\Manager\Api\Context\ProjectContext The project context.
$generatorRegistry Puli\Manager\Api\Factory\Generator\GeneratorRegistry The registry providing the generators for the services returned by the factory.
$classWriter Puli\Manager\Php\ClassWriter The writer that writes the class to a file.
$modules Puli\Manager\Api\Module\ModuleList The loaded modules.
$servers Puli\Manager\Api\Server\ServerCollection The configured servers.
    public function __construct(ProjectContext $context, GeneratorRegistry $generatorRegistry, ClassWriter $classWriter, ModuleList $modules = null, ServerCollection $servers = null)
    {
        $this->context = $context;
        $this->config = $context->getConfig();
        $this->rootDir = $context->getRootDirectory();
        $this->generatorRegistry = $generatorRegistry;
        $this->classWriter = $classWriter;
        $this->modules = $modules;
        $this->servers = $servers;
    }