aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Guse <nathaniel.guse@gmail.com>2013-07-01 12:58:31 -0500
committerNathaniel Guse <nathaniel.guse@gmail.com>2013-07-01 12:58:31 -0500
commit341bae40eb8e8238510a2cb1678f9594a3efd29e (patch)
tree3c5b10fc067973e88aec07c091e5806100321ec4
parent6c30441ad4a20fe4f154d5a859b9df0f28cbc8e0 (diff)
downloadforums-341bae40eb8e8238510a2cb1678f9594a3efd29e.tar
forums-341bae40eb8e8238510a2cb1678f9594a3efd29e.tar.gz
forums-341bae40eb8e8238510a2cb1678f9594a3efd29e.tar.bz2
forums-341bae40eb8e8238510a2cb1678f9594a3efd29e.tar.xz
forums-341bae40eb8e8238510a2cb1678f9594a3efd29e.zip
[feature/twig] Remove the twig loader class that I started (don't use it)
PHPBB3-11598
-rw-r--r--phpBB/includes/template/twig/loader.php51
1 files changed, 0 insertions, 51 deletions
diff --git a/phpBB/includes/template/twig/loader.php b/phpBB/includes/template/twig/loader.php
deleted file mode 100644
index b153bd81ea..0000000000
--- a/phpBB/includes/template/twig/loader.php
+++ /dev/null
@@ -1,51 +0,0 @@
-<?php
-/**
-*
-* @package phpBB3
-* @copyright (c) 2013 phpBB Group
-* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
-*
-*/
-
-// @todo remove if not needed
-class phpbb_template_twig_loader extends Twig_Loader_Filesystem
-{
- protected $phpbb_locator;
-
- /**
- * Constructor.
- *
- * @param string|array $paths A path or an array of paths where to look for templates
- * @param phpbb_template_locator
- */
- public function __construct($paths = array(), phpbb_template_locator $phpbb_locator)
- {
- if ($paths) {
- $this->setPaths($paths);
- }
-
- $this->phpbb_locator = $phpbb_locator;
- }
-
- protected function findTemplate($name)
- {
- $name = (string) $name;
-
- if (!$name)
- {
- throw new Twig_Error_Loader(sprintf('Unable to find template "%s".', $name));
- }
-
- $this->phpbb_locator->set_filenames(array(
- 'temp' => $name,
- ));
- $location = $this->phpbb_locator->get_source_file_for_handle('temp');
-
- if (!$location)
- {
- throw new Twig_Error_Loader(sprintf('Unable to find template "%s".', $name));
- }
-
- return $this->cache[$name] = $location;
- }
-}