src/PHPDish/Bundle/CoreBundle/Command/AbstractInstallCommand.php
protected function ensureDirectoryWritableAndExists($directory, $output)
    {
        $checker = $this->getContainer()->get('phpdish.installer.directory_checker');
        $checker->setOutput($output);
        $checker->setDirectory($directory);
        $checker->check();
    }
protected function ensureDirectoryWritableAndExists($directory, $output)
    {
        $checker = $this->getContainer()->get('phpdish.installer.directory_checker');
        $checker->setOutput($output);
        $checker->setDirectory($directory);
        $checker->check();
    }
确认文件目录存在并且可读.

@param string          $directory
@param OutputInterface $output