Skip to content

Commit

Permalink
Changed RouterInterface to UrlGeneratorInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnhartlief committed May 14, 2019
1 parent 944d388 commit 3218359
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -20,7 +20,6 @@
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\HttpKernel\Profiler\Profiler;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Routing\RouterInterface;
use Twig\Environment;

/**
Expand Down Expand Up @@ -165,7 +164,7 @@ public function toolbarAction(Request $request, $token)

$url = null;
try {
$url = $this->generator->generate('_profiler', ['token' => $token], RouterInterface::ABSOLUTE_URL);
$url = $this->generator->generate('_profiler', ['token' => $token], UrlGeneratorInterface::ABSOLUTE_URL);
} catch (\Exception $e) {
// the profiler is not enabled
}
Expand Down

0 comments on commit 3218359

Please sign in to comment.