Beispiel #1
0
 /**
  * Construct a new base64url codec.
  *
  * @param TransformInterface|null $encodeTransform The encode transform to use.
  * @param TransformInterface|null $decodeTransform The decode transform to use.
  */
 public function __construct(TransformInterface $encodeTransform = null, TransformInterface $decodeTransform = null)
 {
     if (null === $encodeTransform) {
         $encodeTransform = Base64UrlEncodeTransform::instance();
     }
     if (null === $decodeTransform) {
         $decodeTransform = Base64UrlDecodeTransform::instance();
     }
     parent::__construct($encodeTransform, $decodeTransform);
 }
 /**
  * Create the transform.
  *
  * @return TransformInterface The data transform.
  */
 protected function createTransform()
 {
     return Base64UrlDecodeTransform::instance();
 }