original_string: protected function createShell($className, ConsoleIo $io)
      {
          $shell = $this->factory->create($className);
          if ($shell instanceof Shell) {
              $shell->setIo($io);
          }
  
          return $shell;
      }
code: protected function createShell($className, ConsoleIo $io)
      {
          $shell = $this->factory->create($className);
          if ($shell instanceof Shell) {
              $shell->setIo($io);
          }
  
          return $shell;
      }
code_tokens: protected function createShell ( $ className , ConsoleIo $ io ) { $ shell = $ this -> factory -> create ( $ className ) ; if ( $ shell instanceof Shell ) { $ shell -> setIo ( $ io ) ; } return $ shell ; }
docstring: The wrapper for creating shell instances.
  
  @param string $className Shell class name.
  @param \Cake\Console\ConsoleIo $io The IO wrapper for the created shell class.
  @return \Cake\Console\Shell|\Cake\Console\Command
docstring_tokens: The wrapper for creating shell instances .