public function init() {

        $args = $this->console->arguments;

        $args->parse();

        if ( $args->defined('hardstart') ) {

            $this->hardstart();

        }

        if ( $args->defined('daemon') ) {

            $this->daemonize();

        } else if ( $args->defined('foreground') ) {

            if ( $args->defined('verbose') ) {
                $this->logger->pushHandler(new LogHandler());
            }

            $this->start();

        } else {

            $this->console->pad()->green()->usage();
            $this->end(0);

        }

    }
public function init() {

        $args = $this->console->arguments;

        $args->parse();

        if ( $args->defined('hardstart') ) {

            $this->hardstart();

        }

        if ( $args->defined('daemon') ) {

            $this->daemonize();

        } else if ( $args->defined('foreground') ) {

            if ( $args->defined('verbose') ) {
                $this->logger->pushHandler(new LogHandler());
            }

            $this->start();

        } else {

            $this->console->pad()->green()->usage();
            $this->end(0);

        }

    }
public function init ( ) { $ args = $ this -> console -> arguments ; $ args -> parse ( ) ; if ( $ args -> defined ( 'hardstart' ) ) { $ this -> hardstart ( ) ; } if ( $ args -> defined ( 'daemon' ) ) { $ this -> daemonize ( ) ; } else if ( $ args -> defined ( 'foreground' ) ) { if ( $ args -> defined ( 'verbose' ) ) { $ this -> logger -> pushHandler ( new LogHandler ( ) ) ; } $ this -> start ( ) ; } else { $ this -> console -> pad ( ) -> green ( ) -> usage ( ) ; $ this -> end ( 0 ) ; } }
Parse console arguments and init the daemon
Parse console arguments and init the daemon