/**
  * 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']);
 }
Example #2
0
 /**
  * Object constructor.
  */
 public function __construct()
 {
     Auth::ensureLogin();
     parent::__construct();
     $this->sites = new Sites();
 }
Example #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();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     $this->sitesCache = new SitesCache();
 }
Example #5
0
 /**
  * Object constructor
  *
  * @param array $options Elements as follow:
  * @return PluginCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
 }
Example #6
0
 /**
  * Instantiates object, ensures login
  *
  * @return [InstrumentsCommand] $this
  */
 public function __construct()
 {
     Auth::ensureLogin();
     parent::__construct();
 }
Example #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();
 }
Example #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');
 }
Example #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();
 }
Example #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);
 }
Example #13
0
 /**
  * Instantiates object, sets auth property
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth = new Auth();
 }
Example #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();
 }