Skip to content

Commit

Permalink
Adapt to router changes (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
rustamwin committed Dec 24, 2021
1 parent 8096516 commit 133189f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Controller/DebugController.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Psr\Http\Message\ResponseInterface;
use Yiisoft\DataResponse\DataResponseFactoryInterface;
use Yiisoft\Router\CurrentRouteInterface;
use Yiisoft\Router\CurrentRoute;
use Yiisoft\Yii\Debug\Api\Repository\CollectorRepositoryInterface;

/**
Expand Down Expand Up @@ -38,11 +38,11 @@ public function index(): ResponseInterface
/**
* Summary about a processed request identified by ID specified.
*
* @param CurrentRouteInterface $currentRoute
* @param CurrentRoute $currentRoute
*
* @return ResponseInterface
*/
public function summary(CurrentRouteInterface $currentRoute): ResponseInterface
public function summary(CurrentRoute $currentRoute): ResponseInterface
{
$data = $this->collectorRepository->getSummary($currentRoute->getArgument('id'));
return $this->responseFactory->createResponse($data);
Expand All @@ -51,11 +51,11 @@ public function summary(CurrentRouteInterface $currentRoute): ResponseInterface
/**
* Detail information about a processed request identified by ID.
*
* @param CurrentRouteInterface $currentRoute
* @param CurrentRoute $currentRoute
*
* @return ResponseInterface response.
*/
public function view(CurrentRouteInterface $currentRoute): ResponseInterface
public function view(CurrentRoute $currentRoute): ResponseInterface
{
$data = $this->collectorRepository->getDetail(
$currentRoute->getArgument('id')
Expand All @@ -67,11 +67,11 @@ public function view(CurrentRouteInterface $currentRoute): ResponseInterface
/**
* Dump information about a processed request identified by ID.
*
* @param CurrentRouteInterface $currentRoute
* @param CurrentRoute $currentRoute
*
* @return ResponseInterface response.
*/
public function dump(CurrentRouteInterface $currentRoute): ResponseInterface
public function dump(CurrentRoute $currentRoute): ResponseInterface
{
$data = $this->collectorRepository->getDumpObject(
$currentRoute->getArgument('id')
Expand All @@ -83,11 +83,11 @@ public function dump(CurrentRouteInterface $currentRoute): ResponseInterface
/**
* Object information about a processed request identified by ID.
*
* @param CurrentRouteInterface $currentRoute
* @param CurrentRoute $currentRoute
*
* @return ResponseInterface response.
*/
public function object(CurrentRouteInterface $currentRoute): ResponseInterface
public function object(CurrentRoute $currentRoute): ResponseInterface
{
$data = $this->collectorRepository->getObject(
$currentRoute->getArgument('id'),
Expand Down

0 comments on commit 133189f

Please sign in to comment.