/**
  * Init
  */
 public function boot()
 {
     parent::boot();
     //  Ensure guest location
     null === $this->guestLocation && $this->setGuestLocation(GuestLocations::DFE_CLUSTER);
     //  and private path name
     null === $this->privatePathName && ($this->privatePathName = trim(config('provisioning.private-path-name', EnterpriseDefaults::PRIVATE_PATH_NAME), DIRECTORY_SEPARATOR . ' '));
 }
Пример #2
0
 /**
  * @param \Illuminate\Contracts\Foundation\Application $app
  * @param array                                        $settings
  *
  * @throws \Exception
  */
 public function __construct($app = null, array $settings = [])
 {
     parent::__construct($app);
     $_config = ElkServiceProvider::getServiceConfig();
     if (empty($_config)) {
         throw new \RuntimeException('No ELK configuration found (config/elk.php).');
     }
     $this->_client = new Client($_config);
     $this->_getIndices();
 }
Пример #3
0
 /** @inheritdoc */
 public function __construct($app = null)
 {
     parent::__construct($app);
     $this->useConfigServers = config('dashboard.override-cluster-servers', false);
     $this->requireCaptcha = config('dashboard.require-captcha', true);
     $this->panelsPerRow = config('panels.panels-per-row', DashboardDefaults::PANELS_PER_ROW);
     $this->setDefaultDomain(implode('.', [trim(config('dashboard.default-dns-zone'), '. '), trim(config('dashboard.default-dns-domain'), '. ')]));
     $this->determineGridLayout();
     Flasher::setPrefix('dashboard');
 }
Пример #4
0
 /** @inheritdoc */
 public function boot()
 {
     parent::boot();
     //  If we're using telemetry, get an instance of the telemetry service and register any providers
     if (config('telemetry.enabled', false)) {
         $this->telemetry = Telemetry::service();
         //  Register the configured providers
         foreach (config('telemetry.providers', []) as $_name => $_provider) {
             $this->telemetry->registerProvider($_name, new $_provider());
         }
     }
 }
Пример #5
0
 /** @inheritdoc */
 public function boot()
 {
     parent::boot();
     //  Make sure our repo path exists
     $this->repoBase = Disk::path([config('dfe.blueprints.path', ConsoleDefaults::DEFAULT_BLUEPRINT_REPO_PATH)], true);
     //  Tack on the cluster for the organization
     $this->repoPath = Disk::path([$this->repoBase, $_repoName = config('dfe.cluster-id', gethostname())], true);
     //  Get an instance of the git service if we don't have one yet
     !$this->git && ($this->git = new GitService($this->app, $this->repoBase, $_repoName));
     //  Initialize it as a git repo if it isn't already...
     $this->git->init();
 }
Пример #6
0
 /**
  * @param Application $app
  * @param string      $repositoryBasePath
  * @param string|null $repositoryPath The sub-directory for this instance
  */
 public function __construct($app, $repositoryBasePath, $repositoryPath = null)
 {
     parent::__construct($app);
     $this->gitPath = env('GIT_PATH', '.git');
     $this->setRepositoryBasePath($repositoryBasePath)->setRepositoryPath($repositoryPath);
 }
Пример #7
0
 public function boot()
 {
     parent::boot();
     $this->shaper = new DataShaper();
 }
Пример #8
0
 /**
  * @param string $version
  */
 public function __construct($version = null)
 {
     parent::__construct();
     $this->version = $version ?: BasePacket::PACKET_VERSION;
 }