Skip to content

Commit

Permalink
Request is always a packaged request
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed May 29, 2020
1 parent 769286b commit 2905c81
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Context/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

use Cubex\CubexAware;
use Cubex\CubexAwareTrait;
use Packaged\Http\Request;
use Psr\Log\LoggerInterface;

class Context extends \Packaged\Context\Context implements CubexAware
Expand All @@ -13,11 +12,7 @@ class Context extends \Packaged\Context\Context implements CubexAware
protected function _construct()
{
parent::_construct();
$r = $this->request();
if($r instanceof Request)
{
$r->defineTlds(['cubex-local.com', 'local-host.xyz'], true);
}
$this->request()->defineTlds(['cubex-local.com', 'local-host.xyz'], true);
}

public function log(): LoggerInterface
Expand Down

0 comments on commit 2905c81

Please sign in to comment.