From b1da2d8436c34e23a5ad5f01dad37f024286aa89 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Tue, 30 May 2017 10:11:00 +0200 Subject: [PATCH] Removed the deprecated getName() method in Twig extensions --- src/AppBundle/Twig/AppExtension.php | 10 ---------- src/CodeExplorerBundle/Twig/SourceCodeExtension.php | 6 ------ 2 files changed, 16 deletions(-) diff --git a/src/AppBundle/Twig/AppExtension.php b/src/AppBundle/Twig/AppExtension.php index 680a801aa..5a7939d64 100644 --- a/src/AppBundle/Twig/AppExtension.php +++ b/src/AppBundle/Twig/AppExtension.php @@ -95,14 +95,4 @@ public function getLocales() return $locales; } - - /** - * {@inheritdoc} - */ - public function getName() - { - // the name of the Twig extension must be unique in the application. Consider - // using 'app.extension' if you only have one Twig extension in your application. - return 'app.extension'; - } } diff --git a/src/CodeExplorerBundle/Twig/SourceCodeExtension.php b/src/CodeExplorerBundle/Twig/SourceCodeExtension.php index 354ea418b..b884affbd 100644 --- a/src/CodeExplorerBundle/Twig/SourceCodeExtension.php +++ b/src/CodeExplorerBundle/Twig/SourceCodeExtension.php @@ -138,10 +138,4 @@ private function unindentCode($code) return $formattedCode; } - - // the name of the Twig extension must be unique in the application - public function getName() - { - return 'code_explorer_source_code'; - } }