Skip to content

[TwigBundle] fixed Include file locations in "Template could not be f… #16202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

[TwigBundle] fixed Include file locations in "Template could not be f… #16202

wants to merge 2 commits into from

Conversation

rvanginneken
Copy link
Contributor

…ound" exception

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #14806
License MIT
Doc PR ~

@@ -88,7 +88,10 @@ protected function findTemplate($template, $throw = true)
}

if (false === $file || null === $file) {
throw new \Twig_Error_Loader(sprintf('Unable to find template "%s".', $logicalName), -1, null, $previous);
list($namespace, $name) = $this->parseName($logicalName);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to be careful here as parseName() can throw exceptions itself.

@javiereguiluz
Copy link
Member

I'm trying to finish this pull request in #17434. @rvanginneken I reused your two original commits, so you'll get full credit for your work.

@xabbuh
Copy link
Member

xabbuh commented Jan 19, 2016

closing in favour of #17434

@xabbuh xabbuh closed this Jan 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants