From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dbal/src/Driver/API/ExceptionConverter.php | 25 ------ .../src/Driver/API/IBMDB2/ExceptionConverter.php | 47 ----------- .../src/Driver/API/MySQL/ExceptionConverter.php | 94 ---------------------- .../dbal/src/Driver/API/OCI/ExceptionConverter.php | 52 ------------ .../Driver/API/PostgreSQL/ExceptionConverter.php | 82 ------------------- .../src/Driver/API/SQLSrv/ExceptionConverter.php | 49 ----------- .../src/Driver/API/SQLite/ExceptionConverter.php | 85 ------------------- 7 files changed, 434 deletions(-) delete mode 100644 vendor/doctrine/dbal/src/Driver/API/ExceptionConverter.php delete mode 100644 vendor/doctrine/dbal/src/Driver/API/IBMDB2/ExceptionConverter.php delete mode 100644 vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php delete mode 100644 vendor/doctrine/dbal/src/Driver/API/OCI/ExceptionConverter.php delete mode 100644 vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php delete mode 100644 vendor/doctrine/dbal/src/Driver/API/SQLSrv/ExceptionConverter.php delete mode 100644 vendor/doctrine/dbal/src/Driver/API/SQLite/ExceptionConverter.php (limited to 'vendor/doctrine/dbal/src/Driver/API') diff --git a/vendor/doctrine/dbal/src/Driver/API/ExceptionConverter.php b/vendor/doctrine/dbal/src/Driver/API/ExceptionConverter.php deleted file mode 100644 index a7bf271..0000000 --- a/vendor/doctrine/dbal/src/Driver/API/ExceptionConverter.php +++ /dev/null @@ -1,25 +0,0 @@ -getCode()) { - -104 => new SyntaxErrorException($exception, $query), - -203 => new NonUniqueFieldNameException($exception, $query), - -204 => new TableNotFoundException($exception, $query), - -206 => new InvalidFieldNameException($exception, $query), - -407 => new NotNullConstraintViolationException($exception, $query), - -530, - -531, - -532, - -20356 => new ForeignKeyConstraintViolationException($exception, $query), - -601 => new TableExistsException($exception, $query), - -803 => new UniqueConstraintViolationException($exception, $query), - -1336, - -30082 => new ConnectionException($exception, $query), - default => new DriverException($exception, $query), - }; - } -} diff --git a/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php b/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php deleted file mode 100644 index ad0f0e1..0000000 --- a/vendor/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php +++ /dev/null @@ -1,94 +0,0 @@ -getCode()) { - 1008 => new DatabaseDoesNotExist($exception, $query), - 1213 => new DeadlockException($exception, $query), - 1205 => new LockWaitTimeoutException($exception, $query), - 1050 => new TableExistsException($exception, $query), - 1051, - 1146 => new TableNotFoundException($exception, $query), - 1216, - 1217, - 1451, - 1452, - 1701 => new ForeignKeyConstraintViolationException($exception, $query), - 1062, - 1557, - 1569, - 1586 => new UniqueConstraintViolationException($exception, $query), - 1054, - 1166, - 1611 => new InvalidFieldNameException($exception, $query), - 1052, - 1060, - 1110 => new NonUniqueFieldNameException($exception, $query), - 1064, - 1149, - 1287, - 1341, - 1342, - 1343, - 1344, - 1382, - 1479, - 1541, - 1554, - 1626 => new SyntaxErrorException($exception, $query), - 1044, - 1045, - 1046, - 1049, - 1095, - 1142, - 1143, - 1227, - 1370, - 1429, - 2002, - 2005, - 2054 => new ConnectionException($exception, $query), - 2006, - 4031 => new ConnectionLost($exception, $query), - 1048, - 1121, - 1138, - 1171, - 1252, - 1263, - 1364, - 1566 => new NotNullConstraintViolationException($exception, $query), - default => new DriverException($exception, $query), - }; - } -} diff --git a/vendor/doctrine/dbal/src/Driver/API/OCI/ExceptionConverter.php b/vendor/doctrine/dbal/src/Driver/API/OCI/ExceptionConverter.php deleted file mode 100644 index 1c0dc79..0000000 --- a/vendor/doctrine/dbal/src/Driver/API/OCI/ExceptionConverter.php +++ /dev/null @@ -1,52 +0,0 @@ -getCode()) { - 1, - 2299, - 38911 => new UniqueConstraintViolationException($exception, $query), - 904 => new InvalidFieldNameException($exception, $query), - 918, - 960 => new NonUniqueFieldNameException($exception, $query), - 923 => new SyntaxErrorException($exception, $query), - 942 => new TableNotFoundException($exception, $query), - 955 => new TableExistsException($exception, $query), - 1017, - 12545 => new ConnectionException($exception, $query), - 1400 => new NotNullConstraintViolationException($exception, $query), - 1918 => new DatabaseDoesNotExist($exception, $query), - 2289, - 2443, - 4080 => new DatabaseObjectNotFoundException($exception, $query), - 2266, - 2291, - 2292 => new ForeignKeyConstraintViolationException($exception, $query), - default => new DriverException($exception, $query), - }; - } -} diff --git a/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php b/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php deleted file mode 100644 index 54e4966..0000000 --- a/vendor/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php +++ /dev/null @@ -1,82 +0,0 @@ -getSQLState()) { - case '40001': - case '40P01': - return new DeadlockException($exception, $query); - - case '0A000': - // Foreign key constraint violations during a TRUNCATE operation - // are considered "feature not supported" in PostgreSQL. - if (str_contains($exception->getMessage(), 'truncate')) { - return new ForeignKeyConstraintViolationException($exception, $query); - } - - break; - - case '23502': - return new NotNullConstraintViolationException($exception, $query); - - case '23503': - return new ForeignKeyConstraintViolationException($exception, $query); - - case '23505': - return new UniqueConstraintViolationException($exception, $query); - - case '3D000': - return new DatabaseDoesNotExist($exception, $query); - - case '3F000': - return new SchemaDoesNotExist($exception, $query); - - case '42601': - return new SyntaxErrorException($exception, $query); - - case '42702': - return new NonUniqueFieldNameException($exception, $query); - - case '42703': - return new InvalidFieldNameException($exception, $query); - - case '42P01': - return new TableNotFoundException($exception, $query); - - case '42P07': - return new TableExistsException($exception, $query); - - case '08006': - return new ConnectionException($exception, $query); - } - - return new DriverException($exception, $query); - } -} diff --git a/vendor/doctrine/dbal/src/Driver/API/SQLSrv/ExceptionConverter.php b/vendor/doctrine/dbal/src/Driver/API/SQLSrv/ExceptionConverter.php deleted file mode 100644 index 561e58b..0000000 --- a/vendor/doctrine/dbal/src/Driver/API/SQLSrv/ExceptionConverter.php +++ /dev/null @@ -1,49 +0,0 @@ -getCode()) { - 102 => new SyntaxErrorException($exception, $query), - 207 => new InvalidFieldNameException($exception, $query), - 208 => new TableNotFoundException($exception, $query), - 209 => new NonUniqueFieldNameException($exception, $query), - 515 => new NotNullConstraintViolationException($exception, $query), - 547, - 4712 => new ForeignKeyConstraintViolationException($exception, $query), - 2601, - 2627 => new UniqueConstraintViolationException($exception, $query), - 2714 => new TableExistsException($exception, $query), - 3701, - 15151 => new DatabaseObjectNotFoundException($exception, $query), - 11001, - 18456 => new ConnectionException($exception, $query), - default => new DriverException($exception, $query), - }; - } -} diff --git a/vendor/doctrine/dbal/src/Driver/API/SQLite/ExceptionConverter.php b/vendor/doctrine/dbal/src/Driver/API/SQLite/ExceptionConverter.php deleted file mode 100644 index 5885195..0000000 --- a/vendor/doctrine/dbal/src/Driver/API/SQLite/ExceptionConverter.php +++ /dev/null @@ -1,85 +0,0 @@ -getMessage(), 'database is locked')) { - return new LockWaitTimeoutException($exception, $query); - } - - if ( - str_contains($exception->getMessage(), 'must be unique') || - str_contains($exception->getMessage(), 'is not unique') || - str_contains($exception->getMessage(), 'are not unique') || - str_contains($exception->getMessage(), 'UNIQUE constraint failed') - ) { - return new UniqueConstraintViolationException($exception, $query); - } - - if ( - str_contains($exception->getMessage(), 'may not be NULL') || - str_contains($exception->getMessage(), 'NOT NULL constraint failed') - ) { - return new NotNullConstraintViolationException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'no such table:')) { - return new TableNotFoundException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'already exists')) { - return new TableExistsException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'has no column named')) { - return new InvalidFieldNameException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'ambiguous column name')) { - return new NonUniqueFieldNameException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'syntax error')) { - return new SyntaxErrorException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'attempt to write a readonly database')) { - return new ReadOnlyException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'unable to open database file')) { - return new ConnectionException($exception, $query); - } - - if (str_contains($exception->getMessage(), 'FOREIGN KEY constraint failed')) { - return new ForeignKeyConstraintViolationException($exception, $query); - } - - return new DriverException($exception, $query); - } -} -- cgit v1.2.3