public function register(Implementation $impl) { if (!isset($this->extensionPoints[$impl->getExtensionPoint()])) { $this->extensionPoints[$impl->getExtensionPoint()] = []; } $this->extensionPoints[$impl->getExtensionPoint()][] = $impl; }
/** * Checks whether the given implementation matches the filter. * * @param Implementation $implementation * @return boolean */ public function matches(Implementation $implementation) { if (!$this->allModules) { if (!in_array($implementation->getModule(), $this->modules)) { return false; } } if (!$this->allServices) { if (!in_array($implementation->getService(), $this->services)) { return false; } } return true; }