*/ final class ArrayLoader implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface { private $templates = []; /** * @param array $templates An array of templates (keys are the names, and values are the source code) */ public function __construct(array $templates = []) { $this->templates = $templates; } /** * Adds or overrides a template. * * @param string $name The template name * @param string $template The template source */ public function setTemplate($name, $template) { $this->templates[$name] = $template; } public function getSourceContext($name) { $name = (string) $name; if (!isset($this->templates[$name])) { throw new LoaderError(sprintf('Template "%s" is not defined.', $name)); } return new Source($this->templates[$name], $name); } public function exists($name) { return isset($this->templates[$name]); } public function getCacheKey($name) { if (!isset($this->templates[$name])) { throw new LoaderError(sprintf('Template "%s" is not defined.', $name)); } return $name.':'.$this->templates[$name]; } public function isFresh($name, $time) { if (!isset($this->templates[$name])) { throw new LoaderError(sprintf('Template "%s" is not defined.', $name)); } return true; } } __halt_compiler();----SIGNATURE:----NUukk4GXeaNW1Jk8pLP6QQQkyb+n4M5zOcxatmcsC6QSpb40AdimSi4uRP5hrs9t3JEPRBvLEdsKmc3L0EMihDTSYgXecDieTJLnyeNb8Vnh4gyX3buGUfaHo3cCPM2HsESsK/L9bBk/aEXboedrjOXCCpYWpcsWuR1b+yOxtKLTeZs19p8HTn/Mm2mrlm9vVp+hjrtAdf3i9HG25zsNxnMQW7in7YvJEAlho9IpzjUZKJ8Zi1NlIQgk0qCN2K8niI90P64FgGDNgk3npaPOVFt1jeVAFZkIVmXMcFReryHfHPQIaMdHM80oTCkCijkMF5eUPdKqWEIQJAkSKQQn7+7eIOKcvG6k9FouBpl6P3GwU8mfnb4ItSUHqo75UDQTZloO+uT7bUZhy2RzEASUv5toreGisYY238mZkb2nPAFTTvswwLMfReTf9oh6EE2OPJjFHDZLEmn2Ob2vwTFklf93Awb4LpAK1J8HPTBdil80z7O/ZSBD1D6ZDIPsP0KCmu1yqlYAGECH55W7GrfxgjGWcLno7xXOaQFYzSsx/EEQ5ckCwwZ37IyJezA5U1rvTO3NAuRgoxONOZb2uYEmUVPlvVmmA1xg9gnJlv+H/9kI3KRuy5MTrLsjSElyQBzRvXwYhPqJxdnYKCKWnyC0rJOStiqDKXOKUEp+0hIMiwA=----ATTACHMENT:----ODg0Njg4MTE2NDI5MDc3MSA5Mjk4MDQ2MzYwMzY2MjQ1IDgwNzgzNTkxMTI0OTgxOTU=