Commit c68ea40 1 parent 7ba5e78 commit c68ea40 Copy full SHA for c68ea40
File tree 4 files changed +3
-30
lines changed
4 files changed +3
-30
lines changed Original file line number Diff line number Diff line change @@ -33,26 +33,17 @@ jobs:
33
33
- " 8.2"
34
34
- " 8.3"
35
35
dbal-version :
36
- - " 2.13.0"
37
36
- " 3.3.0"
38
37
dependencies :
39
38
- " highest"
40
39
optional-dependencies :
41
40
- true
42
41
- false
43
42
include :
44
- - php-version : " 8.1"
45
- dbal-version : " 2.13.0"
46
- dependencies : " lowest"
47
- optional-dependencies : false
48
43
- php-version : " 8.1"
49
44
dbal-version : " 3.3.0"
50
45
dependencies : " lowest"
51
46
optional-dependencies : false
52
- - php-version : " 8.1"
53
- dbal-version : " 2.13.0"
54
- dependencies : " lowest"
55
- optional-dependencies : true
56
47
- php-version : " 8.1"
57
48
dbal-version : " 3.3.0"
58
49
dependencies : " lowest"
Original file line number Diff line number Diff line change 13
13
"require" : {
14
14
"php" : " ~8.1.0 || ~8.2.0 || ~8.3.0" ,
15
15
"ext-json" : " *" ,
16
- "doctrine/dbal" : " ^2.13.7 || ^ 3.3.2" ,
16
+ "doctrine/dbal" : " ^3.3.2" ,
17
17
"doctrine/doctrine-laminas-hydrator" : " ^3.0.0" ,
18
18
"doctrine/doctrine-module" : " ^5.3.0 || ^6.0.2" ,
19
- "doctrine/event-manager" : " ^1.1.1 || ^ 2.0.0" ,
19
+ "doctrine/event-manager" : " ^2.0.0" ,
20
20
"doctrine/orm" : " ^2.11.1" ,
21
21
"doctrine/persistence" : " ^2.3.0 || ^3.0.0" ,
22
22
"laminas/laminas-eventmanager" : " ^3.4.0" ,
Original file line number Diff line number Diff line change @@ -11,9 +11,6 @@ parameters:
11
11
identifier : method.alreadyNarrowedType
12
12
-
13
13
identifier : function.alreadyNarrowedType
14
- -
15
- message : ' #Method .*CliConfigurator::getHelpers\(\) .*ConnectionHelper#'
16
- path : src/CliConfigurator.php
17
14
-
18
15
message : ' #Method .*DBALConnection::getDriverClass\(\) never returns null#'
19
16
path : src/Options/DBALConnection.php
Original file line number Diff line number Diff line change 4
4
5
5
namespace DoctrineORMModule ;
6
6
7
- use Doctrine \DBAL \Tools \Console \Command \ImportCommand ;
8
- use Doctrine \DBAL \Tools \Console \Helper \ConnectionHelper ;
9
7
use Doctrine \Migrations \Tools \Console \Command \VersionCommand ;
10
8
use Doctrine \ORM \EntityManagerInterface ;
11
9
use Doctrine \ORM \Tools \Console \Helper \EntityManagerHelper ;
@@ -66,12 +64,6 @@ class CliConfigurator
66
64
public function __construct (ContainerInterface $ container )
67
65
{
68
66
$ this ->container = $ container ;
69
-
70
- if (! class_exists (ImportCommand::class)) {
71
- return ;
72
- }
73
-
74
- $ this ->commands [] = 'doctrine.dbal_cmd.import ' ;
75
67
}
76
68
77
69
public function configure (Application $ cli ): void
@@ -97,17 +89,10 @@ public function configure(Application $cli): void
97
89
*/
98
90
private function getHelpers (EntityManagerInterface $ objectManager ): array
99
91
{
100
- $ helpers = [
92
+ return [
101
93
'dialog ' => new QuestionHelper (),
102
94
'em ' => new EntityManagerHelper ($ objectManager ),
103
95
];
104
-
105
- // this is only available with DBAL 2.x
106
- if (class_exists (ConnectionHelper::class)) {
107
- $ helpers ['db ' ] = new ConnectionHelper ($ objectManager ->getConnection ());
108
- }
109
-
110
- return $ helpers ;
111
96
}
112
97
113
98
private function createObjectManagerInputOption (): InputOption
You can’t perform that action at this time.
0 commit comments