Skip to content

Commit 4d46720

Browse files
committed
Removed environment usage
1 parent 8aa7177 commit 4d46720

File tree

1 file changed

+0
-4
lines changed
  • src/Arachne/Codeception/Util/Connector

1 file changed

+0
-4
lines changed

src/Arachne/Codeception/Util/Connector/Nette.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace Arachne\Codeception\Util\Connector;
44

55
use Nette\DI\Container;
6-
use Nette\Environment;
76
use Nette\Http\IResponse;
87
use Symfony\Component\BrowserKit\Client;
98
use Symfony\Component\BrowserKit\Request;
@@ -41,9 +40,6 @@ public function doRequest($request)
4140
// Container initialization can't be called earlier because Nette\Http\IRequest service might be initialized too soon and amOnPage method would not work anymore.
4241
$this->container->initialize();
4342

44-
// Compatibility
45-
Environment::setContext($this->container);
46-
4743
// The HTTP code from previous test sometimes survives in http_response_code() so it's necessary to reset it manually.
4844
$httpResponse = $this->container->getByType('Nette\Http\IResponse');
4945
$httpResponse->setCode(IResponse::S200_OK);

0 commit comments

Comments
 (0)