BaseBundle.php
public function registerCommands(Application $application)
    {
        foreach ($this->getCommands() as $command) {
            $application->add($command);
        }
    }
public function registerCommands(Application $application)
    {
        foreach ($this->getCommands() as $command) {
            $application->add($command);
        }
    }
public function registerCommands ( Application $ application ) { foreach ( $ this -> getCommands ( ) as $ command ) { $ application -> add ( $ command ) ; } }
Register Commands.

@param Application $application
Register Commands .