Example #1
0
 /**
  * Constructor
  */
 public function __construct(Context $context)
 {
     parent::__construct($context);
     $this->encoder = new Encoder();
     $this->encrypter = new Encrypter();
     $this->session = new Session();
     $this->metadata = new Field\Plain($this, self::METADATA, $this->encoder->encode(array()));
 }