src/Neutrino/Dotconst.php
public static function load($path, $compilePath = null)
    {
        if (!$compilePath || !Loader::fromCompile($compilePath)) {
            foreach (Loader::fromFiles($path) as $const => $value) {
                if (defined($const)) {
                    throw new RuntimeException('Constant ' . $const . ' already defined');
                }
                define($const, $value);
            };
        }
    }
public static function load($path, $compilePath = null)
    {
        if (!$compilePath || !Loader::fromCompile($compilePath)) {
            foreach (Loader::fromFiles($path) as $const => $value) {
                if (defined($const)) {
                    throw new RuntimeException('Constant ' . $const . ' already defined');
                }
                define($const, $value);
            };
        }
    }
Loads application constants from .const.ini & .const.{env}.ini files
{env} is matched by [APP_ENV] constant

If a "consts.php" file is present in the $compilePath, .consts.ini & .const.{env}.ini was not loaded & parsed,
the compiled files is automatically loaded.

@param string $path Path to ".const.ini" files
@param string $compilePath

@throws \RuntimeException