/** * @param string $resourceKey * * @return mixed * @throws Unresolvable */ private function getPrimitiveResource($resourceKey) { try { return $this->injectionRegistry->getPrimitiveResource($resourceKey); } catch (Unresolvable $e) { return $this->resourceRegistry->getPrimitiveResource($resourceKey); } }
/** * @return int */ function getCacheCount() { return $this->resourceRegistry->getRegisteredClassResourcesCount(); }