Skip to content

Commit

Permalink
fix: StackedHttpKernel
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Prats committed Oct 5, 2021
1 parent 13f98c0 commit 48d34c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Factory/StackedHttpKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ public function __construct(Container $container, $services)
*/
public function register(HttpKernelInterface $app = null, $name = '', array $parameters = array())
{
$lastServiceName = call_user_func('end', array_keys($this->services));
$services = array_keys($this->services);
$lastServiceName = end($services);
$builder = new \Stack\Builder();
$container = $this->container;

Expand Down

0 comments on commit 48d34c7

Please sign in to comment.