search hotlink icon profile hotlink icon
Ma Public | 1.1.x - 1.x.x

On This Page

Extendable Structure Path

Maze uses Fusion's out-of-the-box extension logic to handle config files, defined in the fusion.json metadata as follows:

                {
    "id": "valvoid/maze",
    "structure": {
        "/configs": "extendable"
    }
}
            

Note

Relative directories in the metadata structure are abstract paths, as they may not correspond to an actual directory on disk, as in Maze.

To provide custom config files, map the extendable path to a structure path in your fusion.json metadata. For example, using a pathname also called configs:

                {
    "structure": {
        "/configs": ":valvoid/maze/configs"
    }
}
            

Directory Organization

Maze recursively loops through directories mapped via structure metadata, loading all files and subdirectories in alphabetical order. For example, the custom configs directory mapped above could have the following content:

  • subdirectory
    • config.php
  • config.php

This results in the following load order:

  • config.php: loaded first
  • subdirectory/config.php: loaded after, overlaying the first