Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function getClient($identifier)
 {
     $result = $this->driver->fetch($identifier);
     $this->logger->debug('GET CLIENT ' . $identifier);
     if (false === $result) {
         throw new StorageException(sprintf('Client %s not found', $identifier));
     }
     return unserialize($result);
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function getClient($identifier)
 {
     try {
         $result = $this->driver->fetch($identifier);
     } catch (\Exception $e) {
         throw new StorageException(sprintf('Driver %s failed', get_class($this)), $e->getCode(), $e);
     }
     $this->logger->debug('GET CLIENT ' . $identifier);
     if (false === $result) {
         throw new ClientNotFoundException(sprintf('Client %s not found', $identifier));
     }
     return unserialize($result);
 }