OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
firebase
/
vendor
/
kreait
/
firebase-php
/
src
/
Firebase
/
Exception
/
Messaging
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
319 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
AuthenticationError.php
608 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
InvalidArgument.php
331 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
InvalidMessage.php
603 bytes
08/12/2024 10:36:27 AM
rw-r--r--
📄
MessagingError.php
603 bytes
08/12/2024 10:36:28 AM
rw-r--r--
📄
NotFound.php
1.73 KB
08/12/2024 10:36:28 AM
rw-r--r--
📄
QuotaExceeded.php
1.09 KB
08/12/2024 10:36:28 AM
rw-r--r--
📄
ServerError.php
600 bytes
08/12/2024 10:36:28 AM
rw-r--r--
📄
ServerUnavailable.php
1.09 KB
08/12/2024 10:36:28 AM
rw-r--r--
Editing: NotFound.php
Close
<?php declare(strict_types=1); namespace Kreait\Firebase\Exception\Messaging; use Kreait\Firebase\Exception\HasErrors; use Kreait\Firebase\Exception\MessagingException; use RuntimeException; final class NotFound extends RuntimeException implements MessagingException { use HasErrors; /** * @param array<mixed> $errors */ public static function becauseTokenNotFound(string $token, array $errors = []): self { $message = <<<MESSAGE The message could not be delivered to the device identified by '{$token}'. Although the token is syntactically correct, it is not known to the Firebase project you are using. This could have the following reasons: - The token has been unregistered from the project. This can happen when a user has logged out from the application on the given client, or if they have uninstalled or re-installed the application. - The token has been registered to a different Firebase project than the project you are using to send the message. A common reason for this is when you work with different application environments and are sending a message from one environment to a device in another environment. MESSAGE; $notFound = new self($message); $notFound->errors = $errors; return $notFound; } /** * @internal * * @param string[] $errors */ public function withErrors(array $errors): self { $new = new self($this->getMessage(), $this->getCode(), $this->getPrevious()); $new->errors = $errors; return $new; } }