From b901a275dc83474ff3466940985b926773971ff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Jura=CC=81sek?= Date: Thu, 14 Jan 2021 16:58:25 +0100 Subject: [PATCH] LinkGenerator: extract interface --- src/Application/ILinkGenerator.php | 26 +++++++++++++++++++ src/Application/LinkGenerator.php | 2 +- .../ApplicationDI/ApplicationExtension.php | 1 + 3 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/Application/ILinkGenerator.php diff --git a/src/Application/ILinkGenerator.php b/src/Application/ILinkGenerator.php new file mode 100644 index 000000000..e83966103 --- /dev/null +++ b/src/Application/ILinkGenerator.php @@ -0,0 +1,26 @@ +addDefinition($this->prefix('linkGenerator')) + ->setType(Nette\Application\ILinkGenerator::class) ->setFactory(Nette\Application\LinkGenerator::class, [ 1 => new Definitions\Statement([new Definitions\Statement('@Nette\Http\IRequest::getUrl'), 'withoutUserInfo']), ]);