Méthode | Description | |
---|---|---|
__construct ( string $repositoryPath, string | string[] $pathReferences ) | Creates a new path mapping. | |
addConflict ( Puli\Manager\Api\Repository\PathConflict $conflict ) | Adds a conflict to the mapping. | |
getConflictingMappings ( ) : |
Returns all conflicting path mappings. | |
getConflictingModules ( ) : |
Returns all modules with conflicting path mappings. | |
getConflicts ( ) : Puli\Manager\Api\Repository\PathConflict[] | Returns the conflicts of the mapping. | |
getContainingModule ( ) : Puli\Manager\Api\Module\Module | Returns the module that contains the mapping. | |
getFilesystemPaths ( ) : string[] | Returns the referenced filesystem paths. | |
getLoadErrors ( ) : Exceptio\Exception[] | Returns the errors that occurred during loading of the mapping. | |
getPathReferences ( ) : string[] | Returns the path references. | |
getRepositoryPath ( ) : string | Returns the repository path. | |
getState ( ) : integer | Returns the state of the mapping. | |
isConflicting ( ) : boolean | Returns whether the mapping conflicts with a mapping in another module. | |
isEnabled ( ) : boolean | Returns whether the mapping is enabled. | |
isLoaded ( ) : boolean | Returns whether the mapping is loaded. | |
isNotFound ( ) : boolean | Returns whether the path referenced by the mapping was not found. | |
listPathMappings ( ) : string[] | Lists all filesystem path to repository path mappings of this mapping. | |
listRepositoryPaths ( ) : string[] | Lists all mapped repository paths. | |
load ( Puli\Manager\Api\Module\Module $containingModule, |
Loads the mapping. | |
removeConflict ( Puli\Manager\Api\Repository\PathConflict $conflict ) | Removes a conflict from the mapping. | |
unload ( ) | Unloads the mapping. |
Méthode | Description | |
---|---|---|
assertFileExists ( $absolutePath, $relativePath, Puli\Manager\Api\Module\Module $containingModule ) | ||
makeAbsolute ( $relativePath, Puli\Manager\Api\Module\Module $containingModule, |
||
refreshState ( ) |
public __construct ( string $repositoryPath, string | string[] $pathReferences ) | ||
$repositoryPath | string | The repository path. |
$pathReferences | string | string[] | The path references. |
public addConflict ( Puli\Manager\Api\Repository\PathConflict $conflict ) | ||
$conflict | Puli\Manager\Api\Repository\PathConflict | The conflict to be added. |
public getConflictingMappings ( ) : |
||
Résultat | The conflicting path mappings. |
public getConflictingModules ( ) : |
||
Résultat | The conflicting modules. |
public getConflicts ( ) : Puli\Manager\Api\Repository\PathConflict[] | ||
Résultat | Puli\Manager\Api\Repository\PathConflict[] | The conflicts. |
public getContainingModule ( ) : Puli\Manager\Api\Module\Module | ||
Résultat | Puli\Manager\Api\Module\Module | The containing module or `null` if the mapping has not been loaded. |
public getFilesystemPaths ( ) : string[] | ||
Résultat | string[] | The absolute filesystem paths. |
public getLoadErrors ( ) : Exceptio\Exception[] | ||
Résultat | Exceptio\Exception[] | The errors that occurred during loading. If the returned array is empty, the mapping was loaded successfully. |
public getPathReferences ( ) : string[] | ||
Résultat | string[] | The path references. |
public getRepositoryPath ( ) : string | ||
Résultat | string | The repository path. |
public isConflicting ( ) : boolean | ||
Résultat | boolean | Returns `true` if the state is {@link PathMappingState::CONFLICT}. |
public isNotFound ( ) : boolean | ||
Résultat | boolean | Returns `true` if the state is {@link PathMappingState::NOT_FOUND}. |
public listPathMappings ( ) : string[] | ||
Résultat | string[] | An array of repository paths with their corresponding filesystem paths as keys. If the mapping has multiple filesystem paths, then repository paths may occur multiple times in the returned array. |
public listRepositoryPaths ( ) : string[] | ||
Résultat | string[] | A list of all mapped repository paths. |
public load ( Puli\Manager\Api\Module\Module $containingModule, |
||
$containingModule | Puli\Manager\Api\Module\Module | The module that contains the mapping. |
$modules | A list of modules that can be referenced using `@vendor/module:` prefixes in the path references. |
public removeConflict ( Puli\Manager\Api\Repository\PathConflict $conflict ) | ||
$conflict | Puli\Manager\Api\Repository\PathConflict | The conflict to remove. |
public unload ( ) |