src/Robo/Blt.php
private function getHooks(
    array $options = ['path' => NULL, 'namespace' => NULL]
  ) {
    $discovery = new CommandFileDiscovery();
    $discovery->setSearchPattern('*Hook.php')->setSearchLocations([]);
    return $discovery->discover($options['path'], $options['namespace']);
  }
private function getHooks(
    array $options = ['path' => NULL, 'namespace' => NULL]
  ) {
    $discovery = new CommandFileDiscovery();
    $discovery->setSearchPattern('*Hook.php')->setSearchLocations([]);
    return $discovery->discover($options['path'], $options['namespace']);
  }
private function getHooks ( array $ options = [ 'path' => NULL , 'namespace' => NULL ] ) { $ discovery = new CommandFileDiscovery ( ) ; $ discovery -> setSearchPattern ( '*Hook.php' ) -> setSearchLocations ( [ ] ) ; return $ discovery -> discover ( $ options [ 'path' ] , $ options [ 'namespace' ] ) ; }
Discovers hooks using CommandFileDiscovery.

@param string[] $options
Elements as follow
string path      The full path to the directory to search for commands
string namespace The full namespace for the command directory.

@return array
An array of Hook classes
Discovers hooks using CommandFileDiscovery .