Stand: SMTP-Test, Admin-Mail-Tab, Notifiable-Fix, Lazy-Quill
- Fix: Notifiable-Trait zum User-Model hinzugefuegt (behebt notify()-500er) - Installer: SMTP-Verbindungstest mit EsmtpTransport + Ueberspringen-Link - Admin: Neuer E-Mail-Tab mit SMTP-Konfiguration + Verbindungstest - Admin: Lazy Quill-Initialisierung (nur sichtbare Locale wird geladen) - Uebersetzungen: 17 neue Mail-Keys in allen 6 Sprachen Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
14
vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
vendored
Normal file
14
vendor/thecodingmachine/safe/lib/Exceptions/CurlException.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class CurlException extends \Exception implements SafeExceptionInterface
|
||||
{
|
||||
/**
|
||||
* @param \CurlHandle $ch
|
||||
*/
|
||||
public static function createFromPhpError($ch = null): self
|
||||
{
|
||||
return new self($ch ? \curl_error($ch) : '', $ch ? \curl_errno($ch) : 0);
|
||||
}
|
||||
}
|
||||
11
vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/lib/Exceptions/JsonException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class JsonException extends \JsonException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
return new self(\json_last_error_msg(), \json_last_error());
|
||||
}
|
||||
}
|
||||
11
vendor/thecodingmachine/safe/lib/Exceptions/OpensslException.php
vendored
Normal file
11
vendor/thecodingmachine/safe/lib/Exceptions/OpensslException.php
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class OpensslException extends \Exception implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
return new self(\openssl_error_string() ?: '', 0);
|
||||
}
|
||||
}
|
||||
20
vendor/thecodingmachine/safe/lib/Exceptions/PcreException.php
vendored
Normal file
20
vendor/thecodingmachine/safe/lib/Exceptions/PcreException.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class PcreException extends \Exception implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$errorMap = [
|
||||
PREG_INTERNAL_ERROR => 'PREG_INTERNAL_ERROR: Internal error',
|
||||
PREG_BACKTRACK_LIMIT_ERROR => 'PREG_BACKTRACK_LIMIT_ERROR: Backtrack limit reached',
|
||||
PREG_RECURSION_LIMIT_ERROR => 'PREG_RECURSION_LIMIT_ERROR: Recursion limit reached',
|
||||
PREG_BAD_UTF8_ERROR => 'PREG_BAD_UTF8_ERROR: Invalid UTF8 character',
|
||||
PREG_BAD_UTF8_OFFSET_ERROR => 'PREG_BAD_UTF8_OFFSET_ERROR',
|
||||
PREG_JIT_STACKLIMIT_ERROR => 'PREG_JIT_STACKLIMIT_ERROR',
|
||||
];
|
||||
$errMsg = $errorMap[preg_last_error()] ?? 'Unknown PCRE error: ' . preg_last_error();
|
||||
return new self($errMsg, \preg_last_error());
|
||||
}
|
||||
}
|
||||
7
vendor/thecodingmachine/safe/lib/Exceptions/SafeExceptionInterface.php
vendored
Normal file
7
vendor/thecodingmachine/safe/lib/Exceptions/SafeExceptionInterface.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
interface SafeExceptionInterface extends \Throwable
|
||||
{
|
||||
}
|
||||
12
vendor/thecodingmachine/safe/lib/Exceptions/SimplexmlException.php
vendored
Normal file
12
vendor/thecodingmachine/safe/lib/Exceptions/SimplexmlException.php
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Safe\Exceptions;
|
||||
|
||||
class SimplexmlException extends \ErrorException implements SafeExceptionInterface
|
||||
{
|
||||
public static function createFromPhpError(): self
|
||||
{
|
||||
$error = \error_get_last();
|
||||
return new self($error['message'] ?? 'An error occurred', 0, $error['type'] ?? 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user