コード例 #1
0
 /**
  * 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
ファイル: WorkflowsCommand.php プロジェクト: dalin-/cli
 /**
  * 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
ファイル: CliCommand.php プロジェクト: 4aficiona2/cli
 public function __construct()
 {
     parent::__construct();
     $this->sitesCache = new SitesCache();
 }
コード例 #5
0
ファイル: PluginCommand.php プロジェクト: uberhacker/tpm
 /**
  * Object constructor
  *
  * @param array $options Elements as follow:
  * @return PluginCommand
  */
 public function __construct(array $options = [])
 {
     parent::__construct($options);
 }
コード例 #6
0
ファイル: InstrumentsCommand.php プロジェクト: bjargud/cli
 /**
  * Instantiates object, ensures login
  *
  * @return [InstrumentsCommand] $this
  */
 public function __construct()
 {
     Auth::ensureLogin();
     parent::__construct();
 }
コード例 #7
0
ファイル: SiteCommand.php プロジェクト: RazzYoshi/cli
 /**
  * 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
ファイル: AuthCommand.php プロジェクト: sammys/terminus
 /**
  * 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
ファイル: AuthCommand.php プロジェクト: RazzYoshi/cli
 /**
  * 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
ファイル: InstrumentsCommand.php プロジェクト: RazzYoshi/cli
 /**
  * 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);
 }
コード例 #12
0
 /**
  * Object constructor
  *
  * @param array $options Elements as follow:
  * @return PantheonAliases
  */
 public function __construct(array $options = [])
 {
     $options['require_login'] = true;
     parent::__construct($options);
 }
コード例 #13
0
ファイル: AuthCommand.php プロジェクト: dalin-/cli
 /**
  * Instantiates object, sets auth property
  */
 public function __construct()
 {
     parent::__construct();
     $this->auth = new Auth();
 }
コード例 #14
0
ファイル: CliCommand.php プロジェクト: sammys/terminus
 /**
  * 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();
 }