original_string: public function init()
      {
          $this->addConsoleCommands();
          $this->getConsole()->add(new WorkerCommand($this));
          $this->getConsole()->add($this['init_command']);
          $this->getConsole()->add(new SshCommand($this));
          $this->getConsole()->add(new RunCommand($this));
          $this->getConsole()->add(new DebugCommand($this));
          $this->getConsole()->add(new AutocompleteCommand());
          $this->getConsole()->afterRun([$this, 'collectAnonymousStats']);
      }
code: public function init()
      {
          $this->addConsoleCommands();
          $this->getConsole()->add(new WorkerCommand($this));
          $this->getConsole()->add($this['init_command']);
          $this->getConsole()->add(new SshCommand($this));
          $this->getConsole()->add(new RunCommand($this));
          $this->getConsole()->add(new DebugCommand($this));
          $this->getConsole()->add(new AutocompleteCommand());
          $this->getConsole()->afterRun([$this, 'collectAnonymousStats']);
      }
code_tokens: public function init ( ) { $ this -> addConsoleCommands ( ) ; $ this -> getConsole ( ) -> add ( new WorkerCommand ( $ this ) ) ; $ this -> getConsole ( ) -> add ( $ this [ 'init_command' ] ) ; $ this -> getConsole ( ) -> add ( new SshCommand ( $ this ) ) ; $ this -> getConsole ( ) -> add ( new RunCommand ( $ this ) ) ; $ this -> getConsole ( ) -> add ( new DebugCommand ( $ this ) ) ; $ this -> getConsole ( ) -> add ( new AutocompleteCommand ( ) ) ; $ this -> getConsole ( ) -> afterRun ( [ $ this , 'collectAnonymousStats' ] ) ; }
docstring: Init console application
docstring_tokens: Init console application