Пример #1
0
 /**
  *  Ethna_Plugin_Csrfのコンストラクタ
  *
  *  @access public
  *  @param  object  Ethna_Controller    $controller    コントローラオブジェクト
  */
 public function __construct($controller)
 {
     parent::__construct($controller);
     // オブジェクトの設定
     $this->session = $this->controller->getSession();
 }
Пример #2
0
 /**
  *  Ethna_Plugin_Csrfのコンストラクタ
  *
  */
 public function __construct(Ethna_ContainerInterface $container)
 {
     parent::__construct($container);
     // オブジェクトの設定
     $this->session = $container->getSession();
 }