public function getAll() {
    if (is_null($this->components)) {
      $base_path = $this->getBaseComponentPath();

      $filter = function (Extension $module) use ($base_path) {
        return strpos($module->getPath(), $base_path) === 0;
      };

      $this->components = array_filter($this->discovery->scan('module'), $filter);
    }
    return $this->components;
  }
public function getAll() {
    if (is_null($this->components)) {
      $base_path = $this->getBaseComponentPath();

      $filter = function (Extension $module) use ($base_path) {
        return strpos($module->getPath(), $base_path) === 0;
      };

      $this->components = array_filter($this->discovery->scan('module'), $filter);
    }
    return $this->components;
  }
public function getAll ( ) { if ( is_null ( $ this -> components ) ) { $ base_path = $ this -> getBaseComponentPath ( ) ; $ filter = function ( Extension $ module ) use ( $ base_path ) { return strpos ( $ module -> getPath ( ) , $ base_path ) === 0 ; } ; $ this -> components = array_filter ( $ this -> discovery -> scan ( 'module' ) , $ filter ) ; } return $ this -> components ; }
Returns extension objects for all WxT components.

@return Extension[]
Array of extension objects for all WxT components.
Returns extension objects for all WxT components .