[WebBundle] Fixing regression introduced in de37e5225b
Signed-off-by: Jordi Boggiano <j.boggiano@seld.be>
This commit is contained in:
parent
47aee04459
commit
635135a4e0
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user