Puli\Manager\Repository\RepositoryManagerImpl::__construct PHP Method

__construct() public method

Creates a repository manager.
public __construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Repository\Api\EditableRepository $repo, ModuleList $modules, JsonStorage $jsonStorage )
$context Puli\Manager\Api\Context\ProjectContext
$repo Puli\Repository\Api\EditableRepository
$modules Puli\Manager\Api\Module\ModuleList
$jsonStorage Puli\Manager\Json\JsonStorage
    public function __construct(ProjectContext $context, EditableRepository $repo, ModuleList $modules, JsonStorage $jsonStorage)
    {
        $this->context = $context;
        $this->dispatcher = $context->getEventDispatcher();
        $this->repo = $repo;
        $this->config = $context->getConfig();
        $this->rootDir = $context->getRootDirectory();
        $this->rootModule = $modules->getRootModule();
        $this->rootModuleFile = $context->getRootModuleFile();
        $this->modules = $modules;
        $this->jsonStorage = $jsonStorage;
    }