PHP Class Puli\Manager\Repository\RepositoryManagerImpl

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: implements Puli\Manager\Api\Repository\RepositoryManager
ファイルを表示 Open project: puli/manager Class Usage Examples

Public Methods

Method Description
__construct ( Puli\Manager\Api\Context\ProjectContext $context, Puli\Repository\Api\EditableRepository $repo, ModuleList $modules, JsonStorage $jsonStorage ) Creates a repository manager.
addRootPathMapping ( PathMapping $mapping, $flags )
buildRepository ( )
clearRepository ( )
clearRootPathMappings ( )
findPathMappings ( Webmozart\Expression\Expression $expr )
findRootPathMappings ( Webmozart\Expression\Expression $expr )
getContext ( )
getPathConflicts ( )
getPathMapping ( $repositoryPath, $moduleName )
getPathMappings ( )
getRepository ( )
getRootPathMapping ( $repositoryPath )
getRootPathMappings ( )
hasPathMapping ( $repositoryPath, $moduleName )
hasPathMappings ( Webmozart\Expression\Expression $expr = null )
hasRootPathMapping ( $repositoryPath )
hasRootPathMappings ( Webmozart\Expression\Expression $expr = null )
removeRootPathMapping ( $repositoryPath )
removeRootPathMappings ( Webmozart\Expression\Expression $expr )

Private Methods

Method Description
addPathMappingToModuleFile ( PathMapping $mapping )
assertMappingsLoaded ( )
assertNoLoadErrors ( PathMapping $mapping )
loadPathMapping ( PathMapping $mapping, Puli\Manager\Api\Module\Module $module )
loadPathMappings ( )
overrideConflictingModules ( PathMapping $mapping )
populateRepository ( )
removePathMappingFromModuleFile ( $repositoryPath )
removeResolvedConflicts ( )
saveRootModuleFile ( )
syncRepositoryPath ( $repositoryPath )
unloadPathMapping ( PathMapping $mapping )
updateConflicts ( array $repositoryPaths = [] )

Method Details

__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

addRootPathMapping() public method

public addRootPathMapping ( PathMapping $mapping, $flags )
$mapping Puli\Manager\Api\Repository\PathMapping

buildRepository() public method

public buildRepository ( )

clearRepository() public method

public clearRepository ( )

clearRootPathMappings() public method

findPathMappings() public method

public findPathMappings ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

findRootPathMappings() public method

public findRootPathMappings ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression

getContext() public method

public getContext ( )

getPathConflicts() public method

public getPathConflicts ( )

getPathMapping() public method

public getPathMapping ( $repositoryPath, $moduleName )

getPathMappings() public method

public getPathMappings ( )

getRepository() public method

public getRepository ( )

getRootPathMapping() public method

public getRootPathMapping ( $repositoryPath )

getRootPathMappings() public method

public getRootPathMappings ( )

hasPathMapping() public method

public hasPathMapping ( $repositoryPath, $moduleName )

hasPathMappings() public method

public hasPathMappings ( Webmozart\Expression\Expression $expr = null )
$expr Webmozart\Expression\Expression

hasRootPathMapping() public method

public hasRootPathMapping ( $repositoryPath )

hasRootPathMappings() public method

public hasRootPathMappings ( Webmozart\Expression\Expression $expr = null )
$expr Webmozart\Expression\Expression

removeRootPathMapping() public method

public removeRootPathMapping ( $repositoryPath )

removeRootPathMappings() public method

public removeRootPathMappings ( Webmozart\Expression\Expression $expr )
$expr Webmozart\Expression\Expression