Skip to content

Commit 2fb6177

Browse files
committed
Added comment
1 parent 253aba5 commit 2fb6177

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Codeception/Util/Connector/Nette.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function doRequest($request)
3939
$_SERVER['REQUEST_METHOD'] = strtoupper($request->getMethod());
4040
$_SERVER['REQUEST_URI'] = $uri;
4141

42+
// Container initialization can't be called earlier because Nette\Http\IRequest service might be initialized too soon and amOnPage method would not work anymore.
4243
$this->container->initialize();
4344
Environment::setContext($this->container);
4445

0 commit comments

Comments
 (0)