src/Console/Application.php
public function prepare()
    {
        $this->startedAt = microtime(true);

        if ($this->getOption('debug')) {
            $this->logger->setLevel(LogLevel::DEBUG);
        } elseif ($this->getOption('verbose')) {
            $this->logger->setLevel(LogLevel::INFO);
        } elseif ($this->getOption('quiet')) {
            $this->logger->setLevel(LogLevel::ERROR);
        } elseif ($this->config('debug', false)) {
            $this->logger->setLevel(LogLevel::DEBUG);
        } elseif ($this->config('verbose', false)) {
            $this->logger->setLevel(LogLevel::INFO);
        }

        return true;
    }
public function prepare()
    {
        $this->startedAt = microtime(true);

        if ($this->getOption('debug')) {
            $this->logger->setLevel(LogLevel::DEBUG);
        } elseif ($this->getOption('verbose')) {
            $this->logger->setLevel(LogLevel::INFO);
        } elseif ($this->getOption('quiet')) {
            $this->logger->setLevel(LogLevel::ERROR);
        } elseif ($this->config('debug', false)) {
            $this->logger->setLevel(LogLevel::DEBUG);
        } elseif ($this->config('verbose', false)) {
            $this->logger->setLevel(LogLevel::INFO);
        }

        return true;
    }
public function prepare ( ) { $ this -> startedAt = microtime ( true ) ; if ( $ this -> getOption ( 'debug' ) ) { $ this -> logger -> setLevel ( LogLevel :: DEBUG ) ; } elseif ( $ this -> getOption ( 'verbose' ) ) { $ this -> logger -> setLevel ( LogLevel :: INFO ) ; } elseif ( $ this -> getOption ( 'quiet' ) ) { $ this -> logger -> setLevel ( LogLevel :: ERROR ) ; } elseif ( $ this -> config ( 'debug' , false ) ) { $ this -> logger -> setLevel ( LogLevel :: DEBUG ) ; } elseif ( $ this -> config ( 'verbose' , false ) ) { $ this -> logger -> setLevel ( LogLevel :: INFO ) ; } return true ; }
This is a `before` trigger of an app. when the application is getting
started, we run `prepare` method to prepare the settings.
This is a before trigger of an app . when the application is getting started we run prepare method to prepare the settings .