Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator::locate
Returns a full path for a given file.
Signature
public function locate(TemplateReferenceInterface
$template,
[string
$currentPath = null,
[Boolean
$first = true]] )
Parameters
$template
— object- A template
$currentPath
— string- Unused
$first
— object- Unused
Returns
- string
- The full path for the file
Errors/Exceptions
-
InvalidArgumentException
- When the template is not an instance of TemplateReferenceInterface
-
InvalidArgumentException
- When the template file can not be found