protected function createShell($className, ConsoleIo $io)
    {
        $shell = $this->factory->create($className);
        if ($shell instanceof Shell) {
            $shell->setIo($io);
        }

        return $shell;
    }
protected function createShell($className, ConsoleIo $io)
    {
        $shell = $this->factory->create($className);
        if ($shell instanceof Shell) {
            $shell->setIo($io);
        }

        return $shell;
    }
protected function createShell ( $ className , ConsoleIo $ io ) { $ shell = $ this -> factory -> create ( $ className ) ; if ( $ shell instanceof Shell ) { $ shell -> setIo ( $ io ) ; } return $ shell ; }
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
The wrapper for creating shell instances .