Puli\Manager\Repository\Mapping\PopulateRepository::execute PHP Метод

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

public execute ( )
    public function execute()
    {
        // Quit if no mappings exist
        if (!($moduleNames = $this->mappings->getModuleNames())) {
            return;
        }
        $sortedNames = $this->overrideGraph->getSortedModuleNames($moduleNames);
        try {
            foreach ($sortedNames as $moduleName) {
                foreach ($this->getEnabledMappingsByModuleName($moduleName) as $repositoryPath => $mapping) {
                    foreach ($mapping->getFilesystemPaths() as $filesystemPath) {
                        $this->repo->add($repositoryPath, $this->createResource($filesystemPath));
                        $this->added = true;
                    }
                }
            }
        } catch (Exception $e) {
            $this->repo->clear();
            throw $e;
        }
    }