From 15e6740e12df3fa53c4b0f3e85e3d91590f0ef60 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 16 Mar 2019 22:02:36 +0100 Subject: [PATCH] Twig update to > 2.11: Fixed namespaces, warnings and cleanup --- composer.json | 2 +- resources/views/layouts/parts/navbar.twig | 12 +++++------- resources/views/pages/login.twig | 2 +- src/Middleware/ErrorHandler.php | 2 +- src/Renderer/Twig/Extensions/Assets.php | 4 ++-- src/Renderer/Twig/Extensions/Authentication.php | 4 ++-- src/Renderer/Twig/Extensions/Config.php | 4 ++-- src/Renderer/Twig/Extensions/Csrf.php | 4 ++-- src/Renderer/Twig/Extensions/Globals.php | 4 ++-- src/Renderer/Twig/Extensions/Legacy.php | 4 ++-- src/Renderer/Twig/Extensions/Markdown.php | 4 ++-- src/Renderer/Twig/Extensions/Session.php | 4 ++-- src/Renderer/Twig/Extensions/Translation.php | 6 +++--- src/Renderer/Twig/Extensions/Url.php | 4 ++-- src/Renderer/TwigEngine.php | 8 ++++---- src/Renderer/TwigLoader.php | 8 ++++---- src/Renderer/TwigServiceProvider.php | 6 +++--- tests/Unit/Middleware/ErrorHandlerTest.php | 2 +- .../Unit/Renderer/Twig/Extensions/ExtensionTest.php | 4 ++-- tests/Unit/Renderer/TwigEngineTest.php | 4 ++-- tests/Unit/Renderer/TwigServiceProviderTest.php | 8 ++++---- 21 files changed, 49 insertions(+), 51 deletions(-) diff --git a/composer.json b/composer.json index 9f56bab7..2beeeb68 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "swiftmailer/swiftmailer": "^6.2", "symfony/http-foundation": "^4.3", "symfony/psr-http-message-bridge": "^1.2", - "twig/twig": "~2.6.0", + "twig/twig": "^2.11", "vlucas/phpdotenv": "^3.3" }, "require-dev": { diff --git a/resources/views/layouts/parts/navbar.twig b/resources/views/layouts/parts/navbar.twig index 0b2eee63..9045601b 100644 --- a/resources/views/layouts/parts/navbar.twig +++ b/resources/views/layouts/parts/navbar.twig @@ -1,5 +1,3 @@ -{% import _self as elements %} - {% macro toolbar_item(label, link, active_page, icon) %} @@ -36,23 +34,23 @@