コード例 #1
0
ファイル: rest.php プロジェクト: socialskeptic/sainsburys
 /**
  * This will set the DI Container before the controller loads
  */
 public function before()
 {
     parent::before();
     //init di containers
     $di = new Library\Di();
     $this->setDi($di->getDi());
 }
コード例 #2
0
ファイル: Base.php プロジェクト: SainsburysTests/sainsburys
 /**
  * This will initialize the DI containers.
  */
 public function __construct()
 {
     parent::__construct();
     $di = new Library\Di();
     $this->setDi($di->getDi());
 }