Templating\Loader\TemplateLocator (Bundle\FrameworkBundle)
Symfony\Bundle\FrameworkBundle\Templating\Loader\TemplateLocator
class TemplateLocator implements FileLocatorInterface
TemplateLocator locates templates in bundles.
Methods
__construct(FileLocatorInterface $locator, string $cacheDir = null) Constructor. | ||
string | locate(TemplateReferenceInterface $template, string $currentPath = null, bool $first = true) Returns a full path for a given file. |
Details
public __construct(FileLocatorInterface $locator, string $cacheDir = null)
Constructor.
public string locate(TemplateReferenceInterface $template, string $currentPath = null, bool $first = true)
Returns a full path for a given file.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Bundle/FrameworkBundle/Templating/Loader/TemplateLocator.html