OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
src
/
Firebase
/
Exception
/
Database
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/12/2024 10:36:28 AM
rwxr-xr-x
📄
ApiConnectionFailed.php
254 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
DatabaseError.php
248 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
DatabaseNotFound.php
1.67 KB
08/12/2024 10:36:27 AM
rw-r--r--
📄
PermissionDenied.php
251 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
PreconditionFailed.php
253 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
ReferenceHasNotBeenSnapshotted.php
854 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
TransactionFailed.php
1.37 KB
08/12/2024 10:36:27 AM
rw-r--r--
📄
UnsupportedQuery.php
637 bytes
08/12/2024 10:36:27 AM
rw-r--r--
Editing: DatabaseNotFound.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\Exception\Database; use Kreait\Firebase\Exception\DatabaseException; use LogicException; use Psr\Http\Message\UriInterface; final class DatabaseNotFound extends LogicException implements DatabaseException { public static function fromUri(UriInterface $uri): self { $scheme = $uri->getScheme(); $host = $uri->getHost(); $databaseName = \explode('.', $host, 2)[0] ?? ''; $databaseUri = "{$scheme}://{$host}"; $suggestedDatabaseUri = \str_replace($databaseName, $databaseName.'-default-rtdb', $databaseUri); $message = <<<MESSAGE The database at {$databaseUri} could not be found. You can find the correct name at https://console.firebase.google.com/project/_/database If you haven't configured the SDK otherwise and if you don't use multiple Realtime Databases, the name you will find will most likely be {$suggestedDatabaseUri} The reason for this is that during the lifetime of the Firebase Admin SDK, Firebase has changed the name of the default database. Previously, the default database had the same identifier as the project. Since approximately September 2020, Realtime Databases in newly created projects have the '-default-rtdb' suffix. For instructions on how to set the name of the used Realtime Database, please see https://firebase-php.readthedocs.io/en/5.x/#quick-start MESSAGE; return new self($message); } }