| Methods |
public
|
__construct(string $path = '.ui5-sources.php')
|
#
|
public
|
all(): array
Returns all resolved source overrides.
Returns all resolved source overrides.
Implements
|
#
|
public
|
ignored(): array
Returns the entries the file names but the store ignored, because their path is
not a directory. The modules behind…
Returns the entries the file names but the store ignored, because their path is
not a directory. The modules behind them resolve through their package instead;
ui5:doctor reports them.
Implements
|
#
|
public
|
get(string $moduleClass): ?string
Returns the source override path for a module, if present.
Returns the source override path for a module, if present.
Implements
|
#
|
public
|
put(string $moduleClass, string $srcPath): bool
Adds or updates a source override for a module.
Adds or updates a source override for a module.
Implementations MUST:
- normalize the path
- validate that it exists and is a directory
- persist the change atomically
- when they create the file, add it to the host's
.gitignore — it is this
checkout's workspace state and never belongs in git
Parameters
| $srcPath |
Absolute path to the workspace project directory
|
Returns
true when the file was added to .gitignore
Implements
|
#
|