@@ -246,6 +246,7 @@ public function testBootstrapRegistersConfiguredMvcEvent()
246246
247247 public function setupPathController ($ addService = true )
248248 {
249+ $ this ->serviceManager ->setAllowOverride (true );
249250 $ request = $ this ->serviceManager ->get ('Request ' );
250251 $ request ->setUri ('http://example.local/path ' );
251252
@@ -257,7 +258,7 @@ public function setupPathController($addService = true)
257258 ],
258259 ]);
259260 $ router ->addRoute ('path ' , $ route );
260- $ services = $ this ->serviceManager ->withConfig ([
261+ $ services = $ this ->serviceManager ->configure ([
261262 'aliases ' => [
262263 'Router ' => 'HttpRouter ' ,
263264 ],
@@ -268,7 +269,7 @@ public function setupPathController($addService = true)
268269
269270 $ application = $ this ->setApplicationServiceManager ($ this ->application , $ services );
270271 if ($ addService ) {
271- $ services = $ services ->withConfig (['factories ' => [
272+ $ services = $ services ->configure (['factories ' => [
272273 'ControllerManager ' => function ($ services ) {
273274 return new ControllerManager ($ services , ['factories ' => [
274275 'path ' => function () {
@@ -299,7 +300,7 @@ public function setupActionController()
299300 ]);
300301 $ router ->addRoute ('sample ' , $ route );
301302
302- $ services = $ this ->serviceManager ->withConfig (['factories ' => [
303+ $ services = $ this ->serviceManager ->configure (['factories ' => [
303304 'ControllerManager ' => function ($ services ) {
304305 return new ControllerManager ($ services , ['factories ' => [
305306 'sample ' => function () {
@@ -331,7 +332,7 @@ public function setupBadController($addService = true)
331332
332333 $ application = $ this ->application ;
333334 if ($ addService ) {
334- $ services = $ this ->serviceManager ->withConfig (['factories ' => [
335+ $ services = $ this ->serviceManager ->configure (['factories ' => [
335336 'ControllerManager ' => function ($ services ) {
336337 return new ControllerManager ($ services , ['factories ' => [
337338 'bad ' => function () {
0 commit comments