* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Bundle\TwigBundle\Loader; use Twig\Error\LoaderError; use Twig\Loader\FilesystemLoader; /** * @author Behnoush Norouzali * * @internal */ class NativeFilesystemLoader extends FilesystemLoader { /** * {@inheritdoc} * * @return string|null */ protected function findTemplate($template, $throw = true) { try { return parent::findTemplate($template, $throw); } catch (LoaderError $e) { if ('' === $template || '@' === $template[0] || !preg_match('/^(?P[^:]*?)(?:Bundle)?:(?P[^:]*+):(?P