This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Templating/Loader/LoaderInterface.php

40 lines
1.1 KiB
PHP

<?php
namespace Symfony\Component\Templating\Loader;
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien.potencier@symfony-project.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/**
* LoaderInterface is the interface all loaders must implement.
*
* @author Fabien Potencier <fabien.potencier@symfony-project.com>
*/
interface LoaderInterface
{
/**
* Loads a template.
*
* @param string $template The logical template name
* @param array $options An array of options
*
* @return Storage|Boolean false if the template cannot be loaded, a Storage instance otherwise
*/
function load($template, array $options = array());
/**
* Returns true if the template is still fresh.
*
* @param string $template The template name
* @param array $options An array of options
* @param timestamp $time The last modification time of the cached template
*/
function isFresh($template, array $options = array(), $time);
}