Skip to content

Commit 82bfa9e

Browse files
committed
minor #569 Removed the deprecated getName() method in Twig extensions (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Removed the deprecated getName() method in Twig extensions ``` /** * Returns the name of the extension. * * @return string The extension name * * @deprecated since 1.26 (to be removed in 2.0), not used anymore internally */ function getName(); ``` Commits ------- b1da2d8 Removed the deprecated getName() method in Twig extensions
2 parents 9de60c6 + b1da2d8 commit 82bfa9e

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

src/AppBundle/Twig/AppExtension.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,4 @@ public function getLocales()
9595

9696
return $locales;
9797
}
98-
99-
/**
100-
* {@inheritdoc}
101-
*/
102-
public function getName()
103-
{
104-
// the name of the Twig extension must be unique in the application. Consider
105-
// using 'app.extension' if you only have one Twig extension in your application.
106-
return 'app.extension';
107-
}
10898
}

src/CodeExplorerBundle/Twig/SourceCodeExtension.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,4 @@ private function unindentCode($code)
132132

133133
return $formattedCode;
134134
}
135-
136-
// the name of the Twig extension must be unique in the application
137-
public function getName()
138-
{
139-
return 'code_explorer_source_code';
140-
}
141135
}

0 commit comments

Comments
 (0)