diff --git a/lib/task/sfBaseTask.class.php b/lib/task/sfBaseTask.class.php index f15f7c2b7..06fbdfec3 100644 --- a/lib/task/sfBaseTask.class.php +++ b/lib/task/sfBaseTask.class.php @@ -48,18 +48,10 @@ public function getFilesystem() } /** - * Checks if the current directory is a symfony project directory. - * - * @return true if the current directory is a symfony project directory, false otherwise - * - * @throws sfException + * @deprecated */ public function checkProjectExists() { - if (!file_exists('symfony')) { - throw new sfException('You must be in a symfony project directory.'); - } - return true; } @@ -116,8 +108,6 @@ protected function doRun(sfCommandManager $commandManager, $options) return $event->getReturnValue(); } - $this->checkProjectExists(); - $requiresApplication = $commandManager->getArgumentSet()->hasArgument('application') || $commandManager->getOptionSet()->hasOption('application'); if (null === $this->configuration || ($requiresApplication && !$this->configuration instanceof sfApplicationConfiguration)) { $application = $commandManager->getArgumentSet()->hasArgument('application') ? $commandManager->getArgumentValue('application') : ($commandManager->getOptionSet()->hasOption('application') ? $commandManager->getOptionValue('application') : null);