Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit a0de0bf

Browse files
committed
Container does not need to inject an EmitterStack
- Since it's now the default behavior.
1 parent 7fa3a73 commit a0de0bf

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Container/ApplicationFactory.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function __invoke(ContainerInterface $container)
133133

134134
$emitter = $container->has(EmitterInterface::class)
135135
? $container->get(EmitterInterface::class)
136-
: $this->createEmitterStack();
136+
: null;
137137

138138
$app = new Application($router, $container, $finalHandler, $emitter);
139139

@@ -175,18 +175,6 @@ private function injectRoutes(Application $app, ContainerInterface $container)
175175
}
176176
}
177177

178-
/**
179-
* Create the default emitter stack.
180-
*
181-
* @return EmitterStack
182-
*/
183-
private function createEmitterStack()
184-
{
185-
$emitter = new EmitterStack();
186-
$emitter->push(new SapiEmitter());
187-
return $emitter;
188-
}
189-
190178
/**
191179
* Given a collection of middleware specifications, pipe them to the application.
192180
*

0 commit comments

Comments
 (0)