Esempio n. 1
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();
 }
 /** @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');
 }
Esempio n. 3
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);
 }
 /**
  * @param \Illuminate\Contracts\Foundation\Application|null $app           The app
  * @param int                                               $guestLocation The guest location to service
  * @param string|null                                       $hashBase      Value used for partition hash
  *                                                                         (instance|user->storage_id_text)
  */
 public function __construct($app = null, $guestLocation = GuestLocations::DFE_CLUSTER, $hashBase = null)
 {
     parent::__construct($app);
     null !== $guestLocation && $this->setGuestLocation($guestLocation);
     null !== $hashBase && ($this->hashBase = $hashBase);
 }
Esempio n. 5
0
 /**
  * @param string $version
  */
 public function __construct($version = null)
 {
     parent::__construct();
     $this->version = $version ?: BasePacket::PACKET_VERSION;
 }