Newscoop\Service\Resource\ResourceRepository::findInServiceCache PHP Method

findInServiceCache() protected method

Find the service instance cached under the specified key.
protected findInServiceCache ( string $key )
$key string The key to search by, *(not null not empty).
    protected function findInServiceCache($key)
    {
        if ($this->serviceCache !== NULL) {
            $service = $this->serviceCache[$key];
            if (isset($service)) {
                return $service;
            }
        }
        return NULL;
    }