Skip to content

Commit afc1bdd

Browse files
committed
Fixed bug where request was not rebound to the container.
Signed-off-by: Jason Lewis <[email protected]>
1 parent 48ae271 commit afc1bdd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

changes.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
### v0.7.*@dev (master)
1+
### v0.8.*@dev (master)
2+
3+
### v0.8.0
24

35
#### Added
46

@@ -16,6 +18,7 @@
1618
#### Fixed
1719

1820
- Fixed bug where headers were not completely copied when creating a new response from an existing response.
21+
- Fixed bug where request was not correctly rebound to the container.
1922

2023
### v0.7.3
2124

src/Dispatcher.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ protected function replaceRequestInstance()
600600
{
601601
array_pop($this->requestStack);
602602

603-
$this->container['request'] = end($this->requestStack);
603+
$this->container->instance('request', end($this->requestStack));
604604

605605
$this->router->setCurrentRequest($this->container['request']);
606606

0 commit comments

Comments
 (0)