Scalr::isHostedScalr PHP Method

isHostedScalr() public static method

Checks whether current install is hosted scalr
public static isHostedScalr ( ) : boolean
return boolean Returns true if current install is a hosted Scalr
    public static function isHostedScalr()
    {
        $hosted = self::config('scalr.hosted.enabled');
        return !empty($hosted);
    }

Usage Example

Esempio n. 1
0
 public function aboutAction()
 {
     $key = "short";
     if (!Scalr::isHostedScalr() || $this->user->isScalrAdmin() || $this->request->getHeaderVar('Interface-Beta')) {
         $key = $this->user->isScalrAdmin() || $this->request->getHeaderVar('Interface-Beta') ? "beta" : "full";
     }
     $this->response->page('ui/core/about.js', Scalr::getContainer()->version($key));
 }
All Usage Examples Of Scalr::isHostedScalr