tipo: modificación del cpanel y gitignore de la carpeta vendor

This commit is contained in:
2026-07-07 11:35:09 -06:00
parent a0c91dc567
commit 676ef0d506
8510 changed files with 1132803 additions and 4 deletions
@@ -0,0 +1,46 @@
<?php
namespace Laravel\Reverb\Protocols\Pusher\Exceptions;
use Exception;
abstract class PusherException extends Exception
{
/**
* The error code associated with the exception.
*
* @var int
*/
protected $code;
/**
* The error message associated with the exception.
*
* @var string
*/
protected $message;
/**
* Get the Pusher formatted error payload.
*/
public function payload(): array
{
return [
'event' => 'pusher:error',
'data' => json_encode([
'code' => $this->code,
'message' => $this->message,
]),
];
}
/**
* Get the encoded Pusher formatted error payload.
*/
public function message()
{
return json_encode(
$this->payload()
);
}
}