getEnvironment() public method

Gets an environment instance which is associated with the request
public getEnvironment ( ) : Scalr_Environment
return Scalr_Environment
Beispiel #1
0
 public function __construct()
 {
     $this->request = Scalr_UI_Request::getInstance();
     $this->response = Scalr_UI_Response::getInstance();
     $this->db = Core::getDBInstance();
     $this->user = $this->request->getUser();
     $this->environment = $this->request->getEnvironment();
     date_default_timezone_set(SCALR_SERVER_TZ);
 }
Beispiel #2
0
 public function __construct()
 {
     $this->request = Scalr_UI_Request::getInstance();
     $this->response = Scalr_UI_Response::getInstance();
     $this->user = $this->request->getUser();
     $this->environment = $this->request->getEnvironment();
     $this->container = Scalr::getContainer();
     $this->db = Scalr::getDb();
 }