Пример #1
0
 /**
  * @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);
     }
 }
Пример #2
0
 /**
  * @return int
  */
 function getCacheCount()
 {
     return $this->resourceRegistry->getRegisteredClassResourcesCount();
 }