소스 검색

[WebBundle] Fixing regression introduced in de37e5225b60a5265982d6062b6d68f277427ae0

Signed-off-by: Jordi Boggiano <j.boggiano@seld.be>
Jordi Boggiano 15 년 전
부모
커밋
635135a4e0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/Symfony/Framework/WebBundle/Console/Application.php

+ 2 - 2
src/Symfony/Framework/WebBundle/Console/Application.php

@@ -18,7 +18,7 @@ use Symfony\Foundation\Kernel;
  */
 
 /**
- * 
+ *
  *
  * @package    symfony
  * @author     Fabien Potencier <fabien.potencier@symfony-project.com>
@@ -95,7 +95,7 @@ class Application extends BaseApplication
         // look for commands
         foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($commandDir), \RecursiveIteratorIterator::LEAVES_ONLY) as $file)
         {
-          if ($file->isDir() || strpos($file, -4) !== '.php')
+          if ($file->isDir() || substr($file, -4) !== '.php')
           {
             continue;
           }