MiniAsset\AssetConfig::__construct PHP Method

__construct() public method

Any userland constants that resolve to file paths will automatically be added to the constants available in configuration files.
public __construct ( array $data = [], array $constants = [] )
$data array Initial data set for the object.
$constants array Additional constants that will be translated when parsing paths.
    public function __construct(array $data = [], array $constants = [])
    {
        $this->_data = $data ?: static::$_defaults;
        $userland = get_defined_constants(true);
        if (isset($userland['user'])) {
            $this->_addConstants($userland['user']);
        }
        $this->_addConstants($constants);
    }