src/Apps/Eventual/Subscribers/Loader.php
public function registerMinimal(string $filePath = null)
    {
        is_file($filePath) || $filePath = App::getBasePath() . $filePath;

        if (is_file($filePath)) {
            /** @noinspection PhpIncludeInspection */
            $configItems = require_once $filePath;

            !is_array($configItems) || Config::items($configItems);

            ini_set('error_reporting',
                Config::exists('errors.error_reporting', 0));
            ini_set('display_errors',
                Config::exists('errors.display_errors', 0));

            Event::dispatch('minimal.loaded.minimal', [
                $filePath,
                is_array($configItems) ? $configItems : []
            ]);
        }
    }
public function registerMinimal(string $filePath = null)
    {
        is_file($filePath) || $filePath = App::getBasePath() . $filePath;

        if (is_file($filePath)) {
            /** @noinspection PhpIncludeInspection */
            $configItems = require_once $filePath;

            !is_array($configItems) || Config::items($configItems);

            ini_set('error_reporting',
                Config::exists('errors.error_reporting', 0));
            ini_set('display_errors',
                Config::exists('errors.display_errors', 0));

            Event::dispatch('minimal.loaded.minimal', [
                $filePath,
                is_array($configItems) ? $configItems : []
            ]);
        }
    }
public function registerMinimal ( string $ filePath = null ) { is_file ( $ filePath ) || $ filePath = App :: getBasePath ( ) . $ filePath ; if ( is_file ( $ filePath ) ) { /** @noinspection PhpIncludeInspection */ $ configItems = require_once $ filePath ; ! is_array ( $ configItems ) || Config :: items ( $ configItems ) ; ini_set ( 'error_reporting' , Config :: exists ( 'errors.error_reporting' , 0 ) ) ; ini_set ( 'display_errors' , Config :: exists ( 'errors.display_errors' , 0 ) ) ; Event :: dispatch ( 'minimal.loaded.minimal' , [ $ filePath , is_array ( $ configItems ) ? $ configItems : [ ] ] ) ; } }
Registers the minimal config file.
It stores the array items from the minimal config file in the Config
object and eventually sets the phpini error_reporting and display_errors.

@param string|null $filePath
Registers the minimal config file . It stores the array items from the minimal config file in the Config object and eventually sets the phpini error_reporting and display_errors .