Download the PHP package sourcebroker/deployer-loader without Composer
On this page you can find all versions of the php package sourcebroker/deployer-loader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sourcebroker/deployer-loader
More information about sourcebroker/deployer-loader
Files in sourcebroker/deployer-loader
Package deployer-loader
Short Description Load deployer tasks and settings from packages, path files.
License MIT
Informations about the package deployer-loader
deployer-loader
What does it do?
This package allows to load:
- single task or set of tasks from given path -> loader type:
path - set of tasks from "deployer" folder of composer package -> loader type:
package - loader config from composer package -> loader type:
get
Installation
Usage
TYPE path
You can load single file or multiple files. You can use excludePattern to exclude.
TYPE file_phar
A file is loaded from relative to root project. Allows to include Deployer phar file.
TYPE package
Files are loaded recursively form given package from hardcoded folder deployer.
TYPE get
In case of get first the file with array of loader configurations is read from given package.
The logic to read the file is like:
- First it checks if the composer.json file contains the key
extra.sourcebroker/deployer.loader-file. - If the key exists, it read it and execute inclusions.
- If the key does not exist, it defaults to the path
config/loader.phpwithin the package directory.
Then the loader configurations read from that file are executed.
Example of loader file: https://github.com/sourcebroker/deployer-typo3-database/blob/main/config/loader.php
Conflict detection
If a loader specifies a 'conflict' configuration that matches another loaded configuration, an exception is thrown with detailed information about the conflict, including which package caused it.
Check if configuration is loaded
You can check if a specific configuration item has already been loaded using the isLoaded() method:
Changelog
See CHANGELOG.rst