4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Bridge\Twig\Tests\Extension\Fixtures
;
14 // Preventing autoloader throwing E_FATAL when Twig is now available
15 if (!class_exists('Twig_Environment')) {
16 class StubFilesystemLoader
20 class StubFilesystemLoader
extends \Twig_Loader_Filesystem
22 protected function findTemplate($name)
24 // strip away bundle name
25 $parts = explode(':', $name);
27 return parent
::findTemplate(end($parts));