/**
  * Object constructor
  *
  * @param array $options Options to construct the command object
  * @return SiteCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->sites = new Sites();
     // Insure that $workdir will be deleted on exit.
     register_shutdown_function([$this, 'cleanup']);
 }
Пример #2
0
 /**
  * Object constructor.
  */
 public function __construct()
 {
     Auth::ensureLogin();
     parent::__construct();
     $this->sites = new Sites();
 }
Пример #3
0
 /**
  * Shows a list of your sites on Pantheon
  *
  * @param array $options Options to construct the command object
  * @return SitesCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->helpers->auth->ensureLogin();
     $this->sites = new Sites();
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->sitesCache = new SitesCache();
 }
Пример #5
0
 /**
  * Object constructor
  *
  * @param array $options Elements as follow:
  * @return PluginCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
 }
Пример #6
0
 /**
  * Instantiates object, ensures login
  *
  * @return [InstrumentsCommand] $this
  */
 public function __construct()
 {
     Auth::ensureLogin();
     parent::__construct();
 }
Пример #7
0
 /**
  * Object constructor
  *
  * @param array $options Options to construct the command object
  * @return SiteCommand
  */
 public function __construct(array $options = [])
 {
     Auth::ensureLogin();
     parent::__construct($options);
     $this->sites = new Sites();
 }
Пример #8
0
 /**
  * Instantiates object, sets auth property
  *
  * @param array $options Options to construct the command object
  * @return AuthCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->auth = $this->helpers->auth;
 }
 /**
  * Object constructor
  *
  * @param array $options Options to construct the command object
  * @return SiteCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->loadUtil('LocalSite');
     $this->loadUtil('Config');
 }
Пример #10
0
 /**
  * Instantiates object, sets auth property
  *
  * @param array $options Options to construct the command object
  * @return AuthCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->auth = new Auth();
 }
Пример #11
0
 /**
  * Instantiates object, ensures login
  *
  * @param array $options Options to construct the command object
  * @returns InstrumentsCommand
  */
 public function __construct(array $options = [])
 {
     Auth::ensureLogin();
     parent::__construct($options);
 }
 /**
  * Object constructor
  *
  * @param array $options Elements as follow:
  * @return PantheonAliases
  */
 public function __construct(array $options = [])
 {
     $options['require_login'] = true;
     parent::__construct($options);
 }
Пример #13
0
 /**
  * Instantiates object, sets auth property
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth = new Auth();
 }
Пример #14
0
 /**
  * Object constructor
  *
  * @param array $options Options to construct the command object
  * @return CliCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
     $this->sites = new Sites();
 }