public function mainAction()
    {
        $this->output->write(Decorate::notice(str_pad('Generating configuration cache', 40, ' ')), false);

        $preloader = new ConfigPreloader();

        try {
            $preloader->compile();

            $this->info("Success");
        } catch (\Exception $e) {
            $this->error("Error");
            $this->block([$e->getMessage()], 'error');
        }
    }
public function mainAction()
    {
        $this->output->write(Decorate::notice(str_pad('Generating configuration cache', 40, ' ')), false);

        $preloader = new ConfigPreloader();

        try {
            $preloader->compile();

            $this->info("Success");
        } catch (\Exception $e) {
            $this->error("Error");
            $this->block([$e->getMessage()], 'error');
        }
    }
public function mainAction ( ) { $ this -> output -> write ( Decorate :: notice ( str_pad ( 'Generating configuration cache' , 40 , ' ' ) ) , false ) ; $ preloader = new ConfigPreloader ( ) ; try { $ preloader -> compile ( ) ; $ this -> info ( "Success" ) ; } catch ( \ Exception $ e ) { $ this -> error ( "Error" ) ; $ this -> block ( [ $ e -> getMessage ( ) ] , 'error' ) ; } }
Configuration cache.

@description Cache the configuration.

@throws \Exception
Configuration cache .