/**
  * @param string $encryptedData
  * @param string $encrypterName
  */
 public function decryptFilter($encryptedData, $encrypterName = null)
 {
     if ($encrypterName == null) {
         $encrypterName = $this->defaultEncrypterName;
     }
     return $this->encrypterManager->get($encrypterName)->decrypt($encryptedData);
 }
 /**
  * @expectedException BadMethodCallException
  *
  * @covers Pierrre\EncrypterBundle\Util\ManagedEncrypter::close
  */
 public function testManagedEncrypterClose()
 {
     $configs = array('encrypter' => self::getEncrypterBaseOptions());
     $manager = new EncrypterManager($configs);
     $encrypter = $manager->get('encrypter');
     $encrypter->close();
 }