質問編集履歴
1
試したことをついか
test
CHANGED
File without changes
|
test
CHANGED
@@ -64,7 +64,35 @@
|
|
64
64
|
|
65
65
|
### 試したこと
|
66
66
|
|
67
|
-
EntityManagerを
|
67
|
+
* EntityManagerをuse。
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
<<追記>>
|
72
|
+
|
73
|
+
* EntityManagerInterfaceをuse
|
74
|
+
|
75
|
+
* service.ymlに下記を追記
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
```php
|
80
|
+
|
81
|
+
App\Command\:
|
82
|
+
|
83
|
+
resource; ‘../src/command’
|
84
|
+
|
85
|
+
arguments: [“@doctrine.entity_manager”]
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
→FatalThrowbleError
|
90
|
+
|
91
|
+
“Argument 1 passed to App\Command\TestCommand::__construct() must implement interface Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface, instance of Doctrine\ORM\EntityManeger given, called in ..(略)..TextCommand.php on line 14”
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
と表示される。
|
68
96
|
|
69
97
|
|
70
98
|
|