src/Command/AbstractCommand.php
final public function initialize(InputInterface $input, OutputInterface $output)
    {
        parent::initialize($input, $output);

        $this->setInput($input);
        $this->setOutput($output);

        putenv('BLUZ_ENV=' . ($input->getOption('env') ?: getenv('BLUZ_ENV')));

        $loader = new \Bluz\Config\ConfigLoader();
        $loader->setPath(PATH_APPLICATION);
        $loader->setEnvironment($input->getOption('env'));
        $loader->load();

        $config = new \Bluz\Config\Config();
        $config->setFromArray($loader->getConfig());

        Config::setInstance($config);
    }
final public function initialize(InputInterface $input, OutputInterface $output)
    {
        parent::initialize($input, $output);

        $this->setInput($input);
        $this->setOutput($output);

        putenv('BLUZ_ENV=' . ($input->getOption('env') ?: getenv('BLUZ_ENV')));

        $loader = new \Bluz\Config\ConfigLoader();
        $loader->setPath(PATH_APPLICATION);
        $loader->setEnvironment($input->getOption('env'));
        $loader->load();

        $config = new \Bluz\Config\Config();
        $config->setFromArray($loader->getConfig());

        Config::setInstance($config);
    }
@param  InputInterface  $input
@param  OutputInterface $output

@return void
@throws \Bluz\Config\ConfigException