예제 #1
0
 /**
  * Handle the message to delete the cached content hold by the identifier
  * through the injected cache proxy.
  * @param \Brickoo\Component\Messaging\Message $message
  * @return void
  */
 public function handleDeleteMessage(Message $message)
 {
     if ($message instanceof DeleteMessage) {
         $this->storageProxy->delete($message->getIdentifier());
     }
 }
예제 #2
0
 /**
  * @covers Brickoo\Component\Storage\StorageProxy::delete
  * @expectedException \InvalidArgumentException
  */
 public function testDeleteIdentifierThrowsArgumentException()
 {
     $storageProxy = new StorageProxy($this->getAdapterPoolIterator());
     $storageProxy->delete(["wrongType"]);
 }