File "AuthError.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/kreait/firebase-php/src/Firebase/Exception/Auth/AuthError.php
File size: 883 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
declare(strict_types=1);
namespace Kreait\Firebase\Exception\Auth;
use Kreait\Firebase\Exception\AuthException;
use Kreait\Firebase\Exception\RuntimeException;
use Kreait\Firebase\Factory;
final class AuthError extends RuntimeException implements AuthException
{
public static function missingProjectId(string $message): self
{
$factoryClass = Factory::class;
$fullMessage = <<<MSG
{$message}
The current Firebase project is configured without a project ID. The project
ID can be determined automatically with service account credentials, by
providing a `GOOGLE_CLOUD_PROJECT=project_id` environment variable, or
manually by using the respective method when instantiating the SDK's
factory ({$factoryClass}).
MSG;
return new self($fullMessage);
}
}