Skip to content

Commit

Permalink
Inject http request by interface (closes #16)
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Sep 13, 2013
1 parent dfc4f74 commit 2a32dad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Kdyby/SessionPanel/Diagnostics/SessionPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Kdyby\SessionPanel\Diagnostics;

use Nette;
use Nette\Http\Request;
use Nette\Http\IRequest;
use Nette\Iterators\Mapper;


Expand Down Expand Up @@ -32,9 +32,9 @@ class SessionPanel extends Nette\Object implements Nette\Diagnostics\IBarPanel

/**
* @param \Nette\Http\Session $session
* @param \Nette\Http\Request $httpRequest
* @param \Nette\Http\IRequest $httpRequest
*/
public function __construct(Nette\Http\Session $session, Request $httpRequest)
public function __construct(Nette\Http\Session $session, IRequest $httpRequest)
{
$this->session = $session;
$this->url = clone $httpRequest->url;
Expand All @@ -44,9 +44,9 @@ public function __construct(Nette\Http\Session $session, Request $httpRequest)


/**
* @param \Nette\Http\Request $httpRequest
* @param \Nette\Http\IRequest $httpRequest
*/
private function processSignal(Request $httpRequest)
private function processSignal(IRequest $httpRequest)
{
if ($httpRequest->getQuery('do') !== self::SIGNAL) {
return;
Expand Down

0 comments on commit 2a32dad

Please sign in to comment.