浏览代码

[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;
           }