/** * 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 . ' ')); }
/** @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()); } } }
/** @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(); }
public function boot() { parent::boot(); $this->shaper = new DataShaper(); }