From a478111eaac5afbe1fa35cc5a7b72a8e37d0af60 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Thu, 20 Oct 2022 07:50:30 -0700 Subject: [PATCH] Remove extension via Doctrine Event Manager --- composer.json | 1 - psalm.xml.dist | 65 ----- src/Connection.php | 97 +------ .../PrimaryReadReplicaConnection.php | 26 +- src/DriverManager.php | 19 +- src/Event/ConnectionEventArgs.php | 25 -- src/Event/Listeners/OracleSessionInit.php | 75 ------ src/Event/Listeners/SQLSessionInit.php | 36 --- src/Event/Listeners/SQLiteSessionInit.php | 28 -- .../SchemaAlterTableAddColumnEventArgs.php | 59 ----- .../SchemaAlterTableChangeColumnEventArgs.php | 59 ----- src/Event/SchemaAlterTableEventArgs.php | 50 ---- .../SchemaAlterTableRemoveColumnEventArgs.php | 59 ----- .../SchemaAlterTableRenameColumnEventArgs.php | 65 ----- src/Event/SchemaColumnDefinitionEventArgs.php | 66 ----- .../SchemaCreateTableColumnEventArgs.php | 59 ----- src/Event/SchemaCreateTableEventArgs.php | 70 ----- src/Event/SchemaDropTableEventArgs.php | 44 ---- src/Event/SchemaEventArgs.php | 30 --- src/Event/SchemaIndexDefinitionEventArgs.php | 59 ----- src/Event/TransactionBeginEventArgs.php | 10 - src/Event/TransactionCommitEventArgs.php | 10 - src/Event/TransactionEventArgs.php | 21 -- src/Event/TransactionRollBackEventArgs.php | 10 - src/Events.php | 66 ----- src/Platforms/AbstractMySQLPlatform.php | 36 +-- src/Platforms/AbstractPlatform.php | 247 ------------------ src/Platforms/DB2Platform.php | 48 +--- src/Platforms/OraclePlatform.php | 35 +-- src/Platforms/PostgreSQLPlatform.php | 35 +-- src/Platforms/SQLServerPlatform.php | 27 +- src/Platforms/SQLitePlatform.php | 90 +++---- src/Schema/AbstractSchemaManager.php | 76 +----- tests/ConnectionTest.php | 167 ------------ tests/Events/OracleSessionInitTest.php | 59 ----- tests/Events/SQLSessionInitTest.php | 33 --- tests/Functional/ConnectionTest.php | 3 - .../Functional/Driver/AbstractDriverTest.php | 1 - .../Driver/PDO/PgSQL/ConnectionTest.php | 1 - .../Functional/Driver/SQLite3/DriverTest.php | 2 - .../SchemaManagerFunctionalTestCase.php | 42 --- tests/Platforms/AbstractPlatformTestCase.php | 94 ------- tests/Query/QueryBuilderTest.php | 6 - tests/Schema/MySQLInheritCharsetTest.php | 5 +- 44 files changed, 95 insertions(+), 2021 deletions(-) delete mode 100644 src/Event/ConnectionEventArgs.php delete mode 100644 src/Event/Listeners/OracleSessionInit.php delete mode 100644 src/Event/Listeners/SQLSessionInit.php delete mode 100644 src/Event/Listeners/SQLiteSessionInit.php delete mode 100644 src/Event/SchemaAlterTableAddColumnEventArgs.php delete mode 100644 src/Event/SchemaAlterTableChangeColumnEventArgs.php delete mode 100644 src/Event/SchemaAlterTableEventArgs.php delete mode 100644 src/Event/SchemaAlterTableRemoveColumnEventArgs.php delete mode 100644 src/Event/SchemaAlterTableRenameColumnEventArgs.php delete mode 100644 src/Event/SchemaColumnDefinitionEventArgs.php delete mode 100644 src/Event/SchemaCreateTableColumnEventArgs.php delete mode 100644 src/Event/SchemaCreateTableEventArgs.php delete mode 100644 src/Event/SchemaDropTableEventArgs.php delete mode 100644 src/Event/SchemaEventArgs.php delete mode 100644 src/Event/SchemaIndexDefinitionEventArgs.php delete mode 100644 src/Event/TransactionBeginEventArgs.php delete mode 100644 src/Event/TransactionCommitEventArgs.php delete mode 100644 src/Event/TransactionEventArgs.php delete mode 100644 src/Event/TransactionRollBackEventArgs.php delete mode 100644 src/Events.php delete mode 100644 tests/Events/OracleSessionInitTest.php delete mode 100644 tests/Events/SQLSessionInitTest.php diff --git a/composer.json b/composer.json index 8a4434784a2..7ad2cf16536 100644 --- a/composer.json +++ b/composer.json @@ -34,7 +34,6 @@ "php": "^8.1", "composer-runtime-api": "^2", "doctrine/deprecations": "^0.5.3|^1", - "doctrine/event-manager": "^1|^2", "psr/cache": "^1|^2|^3", "psr/log": "^1|^2|^3" }, diff --git a/psalm.xml.dist b/psalm.xml.dist index 6ea37fdf0b2..0de81952fd5 100644 --- a/psalm.xml.dist +++ b/psalm.xml.dist @@ -32,52 +32,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -