protected function loadCommands($console) {
		if(file_exists($this->getPath().'/Command/')) {
			foreach(glob($this->getPath().'/Command/*.php') as $filename) {
				$class = \Asgard\Common\Tools::loadClassFile($filename);
				if(is_subclass_of($class, 'Symfony\Component\Console\Command\Command')) {
					try {
						$console->add(new $class);
					}
					catch(\Exception $e) {} #ignore if it cannot be instantiated without arguments
					catch(\Throwable $e) {} #ignore if it cannot be instantiated without arguments
				}
			}
		}
	}
protected function loadCommands($console) {
		if(file_exists($this->getPath().'/Command/')) {
			foreach(glob($this->getPath().'/Command/*.php') as $filename) {
				$class = \Asgard\Common\Tools::loadClassFile($filename);
				if(is_subclass_of($class, 'Symfony\Component\Console\Command\Command')) {
					try {
						$console->add(new $class);
					}
					catch(\Exception $e) {} #ignore if it cannot be instantiated without arguments
					catch(\Throwable $e) {} #ignore if it cannot be instantiated without arguments
				}
			}
		}
	}
protected function loadCommands ( $ console ) { if ( file_exists ( $ this -> getPath ( ) . '/Command/' ) ) { foreach ( glob ( $ this -> getPath ( ) . '/Command/*.php' ) as $ filename ) { $ class = \ Asgard \ Common \ Tools :: loadClassFile ( $ filename ) ; if ( is_subclass_of ( $ class , 'Symfony\Component\Console\Command\Command' ) ) { try { $ console -> add ( new $ class ) ; } catch ( \ Exception $ e ) { } #ignore if it cannot be instantiated without arguments catch ( \ Throwable $ e ) { } #ignore if it cannot be instantiated without arguments } } } }
Load bundle's commands.
@param  \Asgard\Console\Application $console
Load bundle s commands .