protected function loadHooks() {
		$hooks = [];
		if(file_exists($this->getPath().'/Hook/')) {
			foreach(glob($this->getPath().'/Hook/*.php') as $filename) {
				$class = \Asgard\Common\Tools::loadClassFile($filename);
				if(is_subclass_of($class, 'Asgard\Hook\HookContainer'))
					$hooks = array_merge_recursive($hooks, $this->hooksAnnotationReader->fetchHooks($class));
			}
		}
		return $hooks;
	}
protected function loadHooks() {
		$hooks = [];
		if(file_exists($this->getPath().'/Hook/')) {
			foreach(glob($this->getPath().'/Hook/*.php') as $filename) {
				$class = \Asgard\Common\Tools::loadClassFile($filename);
				if(is_subclass_of($class, 'Asgard\Hook\HookContainer'))
					$hooks = array_merge_recursive($hooks, $this->hooksAnnotationReader->fetchHooks($class));
			}
		}
		return $hooks;
	}
protected function loadHooks ( ) { $ hooks = [ ] ; if ( file_exists ( $ this -> getPath ( ) . '/Hook/' ) ) { foreach ( glob ( $ this -> getPath ( ) . '/Hook/*.php' ) as $ filename ) { $ class = \ Asgard \ Common \ Tools :: loadClassFile ( $ filename ) ; if ( is_subclass_of ( $ class , 'Asgard\Hook\HookContainer' ) ) $ hooks = array_merge_recursive ( $ hooks , $ this -> hooksAnnotationReader -> fetchHooks ( $ class ) ) ; } } return $ hooks ; }
Return bundle's hooks.
@return array
Return bundle s hooks .