|
@@ -47,7 +47,7 @@ abstract class Bundle extends ContainerAware implements BundleInterface {
|
|
|
foreach ($finder as $file) {
|
|
|
$r = new \ReflectionClass($prefix.strtr($file->getPath(), array($dir => '', '/' => '\\')).'\\'.basename($file, '.php'));
|
|
|
if ($r->isSubclassOf('Symfony\\Component\\Console\\Command\\Command') && !$r->isAbstract()) {
|
|
|
- $application->addCommand($r->newInstance()); } } }
|
|
|
+ $application->add($r->newInstance()); } } }
|
|
|
protected function initReflection() {
|
|
|
$tmp = dirname(str_replace('\\', '/', get_class($this)));
|
|
|
$this->namespacePrefix = str_replace('/', '\\', dirname($tmp));
|