Esempio n. 1
0
 public static function create()
 {
     if (self::$_bdApi_viewRenderer === null) {
         self::$_bdApi_viewRenderer = bdApi_Template_Simulation_ViewRenderer::create();
     }
     return new bdApi_Template_Simulation_View(self::$_bdApi_viewRenderer, self::$_bdApi_viewRenderer->bdApi_getResponse());
 }
Esempio n. 2
0
 public static function create()
 {
     if (self::$_bdApi_dependencies === null) {
         self::$_bdApi_dependencies = new bdApi_Template_Simulation_Dependencies();
     }
     if (self::$_bdApi_request === null) {
         self::$_bdApi_request = new Zend_Controller_Request_Http();
     }
     if (self::$_bdApi_response === null) {
         self::$_bdApi_response = new Zend_Controller_Response_Http();
     }
     return new bdApi_Template_Simulation_ViewRenderer(self::$_bdApi_dependencies, self::$_bdApi_response, self::$_bdApi_request);
 }