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

        try {
            self::generateCache();

            $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 dotconst cache', 40, ' ')), false);

        try {
            self::generateCache();

            $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 dotconst cache' , 40 , ' ' ) ) , false ) ; try { self :: generateCache ( ) ; $ this -> info ( "Success" ) ; } catch ( \ Exception $ e ) { $ this -> error ( "Error" ) ; $ this -> block ( [ $ e -> getMessage ( ) ] , 'error' ) ; } }
Dotconst compile & cache.

@description Dotconst compile & cache.

@throws \Exception
Dotconst compile & cache .