private function searchPathsForHandlers() { if ($this->pathSearchPerformed) { return; } $this->pathSearchPerformed = true; $this->searchPathForHandlers($this->systemPaths->getActivityLog(), 'ActivityLog'); $this->searchPathForHandlers($this->systemPaths->getModels(), 'Model'); foreach ($this->paths as $path => $namespacePrefix) { $this->searchPathForHandlers($path, $namespacePrefix); } }