Configurable Package Directory
The optional dir entry configures the root package directory to manage.
{
"dir": {
"path": "<directory>",
"creatable": "<flag>",
"clearable": "<flag>"
}
}
[
"dir" => [
"path" => "<directory>",
"creatable" => "<flag>",
"clearable" => "<flag>"
]
]
Path Directory
By default, Fusion moves up from PHP's current working directory (getcwd function)
until it reaches the top-level package metadata fusion.json. If the optional
path entry is specified, Fusion will manage the package from that directory instead.
Creatable Flag
By default, Fusion creates non-existing directories. If the optional creatable
flag is set to one of the following values, Fusion will use it instead:
true: defaultfalse
Clearable Flag
By default, Fusion does not clear existing directories with unknown content (not a
package). If the optional clearable flag is set to one of the following values,
Fusion will use it instead:
false: defaulttrue
Configurable Persistence Layer
The optional persistence entry configures the middle config layer.
{
"persistence": {
"overlay": "<flag>"
}
}
[
"persistence" => [
"overlay" => "<flag>"
]
]
Overlay Flag
By default, Fusion loads the persisted configuration and overlays it on the
default layer. If the optional overlay flag is set to one of the following
values, Fusion will use it instead:
true: defaultfalse