@@ -134,17 +134,11 @@ protected function getBar5Service()
134
134
*/
135
135
protected function getConnectionService ()
136
136
{
137
- $ a = $ {($ _ = isset ($ this ->services ['dispatcher ' ]) ? $ this ->services ['dispatcher ' ] : $ this ->getDispatcherService ()) && false ?: '_ ' };
138
-
139
- if (isset ($ this ->services ['connection ' ])) {
140
- return $ this ->services ['connection ' ];
141
- }
142
-
143
- $ b = new \stdClass ();
137
+ $ a = new \stdClass ();
144
138
145
- $ this ->services ['connection ' ] = $ instance = new \stdClass ($ a , $ b );
139
+ $ this ->services ['connection ' ] = $ instance = new \stdClass ($ {( $ _ = isset ( $ this -> services [ ' dispatcher ' ]) ? $ this -> services [ ' dispatcher ' ] : $ this -> getDispatcherService ()) && false ?: ' _ ' } , $ a );
146
140
147
- $ b ->logger = $ {($ _ = isset ($ this ->services ['logger ' ]) ? $ this ->services ['logger ' ] : $ this ->getLoggerService ()) && false ?: '_ ' };
141
+ $ a ->logger = $ {($ _ = isset ($ this ->services ['logger ' ]) ? $ this ->services ['logger ' ] : $ this ->getLoggerService ()) && false ?: '_ ' };
148
142
149
143
return $ instance ;
150
144
}
@@ -156,21 +150,15 @@ protected function getConnectionService()
156
150
*/
157
151
protected function getConnection2Service ()
158
152
{
159
- $ a = $ {($ _ = isset ($ this ->services ['dispatcher2 ' ]) ? $ this ->services ['dispatcher2 ' ] : $ this ->getDispatcher2Service ()) && false ?: '_ ' };
160
-
161
- if (isset ($ this ->services ['connection2 ' ])) {
162
- return $ this ->services ['connection2 ' ];
163
- }
164
-
165
- $ b = new \stdClass ();
153
+ $ a = new \stdClass ();
166
154
167
- $ this ->services ['connection2 ' ] = $ instance = new \stdClass ($ a , $ b );
155
+ $ this ->services ['connection2 ' ] = $ instance = new \stdClass ($ {( $ _ = isset ( $ this -> services [ ' dispatcher2 ' ]) ? $ this -> services [ ' dispatcher2 ' ] : $ this -> getDispatcher2Service ()) && false ?: ' _ ' } , $ a );
168
156
169
- $ c = new \stdClass ($ instance );
157
+ $ b = new \stdClass ($ instance );
170
158
171
- $ c ->handler2 = new \stdClass ($ {($ _ = isset ($ this ->services ['manager2 ' ]) ? $ this ->services ['manager2 ' ] : $ this ->getManager2Service ()) && false ?: '_ ' });
159
+ $ b ->handler2 = new \stdClass ($ {($ _ = isset ($ this ->services ['manager2 ' ]) ? $ this ->services ['manager2 ' ] : $ this ->getManager2Service ()) && false ?: '_ ' });
172
160
173
- $ b ->logger2 = $ c ;
161
+ $ a ->logger2 = $ b ;
174
162
175
163
return $ instance ;
176
164
}
@@ -380,12 +368,6 @@ protected function getManager2Service()
380
368
*/
381
369
protected function getSubscriberService ()
382
370
{
383
- $ a = $ {($ _ = isset ($ this ->services ['manager ' ]) ? $ this ->services ['manager ' ] : $ this ->getManagerService ()) && false ?: '_ ' };
384
-
385
- if (isset ($ this ->services ['subscriber ' ])) {
386
- return $ this ->services ['subscriber ' ];
387
- }
388
-
389
- return $ this ->services ['subscriber ' ] = new \stdClass ($ a );
371
+ return $ this ->services ['subscriber ' ] = new \stdClass ($ {($ _ = isset ($ this ->services ['manager ' ]) ? $ this ->services ['manager ' ] : $ this ->getManagerService ()) && false ?: '_ ' });
390
372
}
391
373
}
0 commit comments