Example #1
0
 public function initialize(AgaviContext $context, array $parameters = array())
 {
     parent::initialize($context, $parameters);
     $this->context = $context;
     if (count($parameters)) {
         $this->setParameters($parameters);
     }
     $this->attributes = array();
 }
 /**
  * Execute the shutdown procedure.
  *
  * @author     Harald Kirschner <*****@*****.**>
  * @author     David Zülke <*****@*****.**>
  * @since      0.11.0
  */
 public function shutdown()
 {
     $this->context->getStorage()->write(self::ROLES_NAMESPACE, $this->roles);
     // call the parent shutdown method
     parent::shutdown();
 }