Move ITemplateEngine to src
- Fix method name format
This commit is contained in:
parent
97f063e4be
commit
104a1d7fd3
5 changed files with 23 additions and 22 deletions
|
@ -295,7 +295,7 @@ class App {
|
|||
// Register template engines
|
||||
$dc = get_declared_classes();
|
||||
foreach ($dc as $k) {
|
||||
if (in_array('ITemplateEngine', class_implements($k))) {
|
||||
if (in_array('Friendica\Render\ITemplateEngine', class_implements($k))) {
|
||||
$this->register_template_engine($k);
|
||||
}
|
||||
}
|
||||
|
|
15
src/Render/ITemplateEngine.php
Normal file
15
src/Render/ITemplateEngine.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
/**
|
||||
* @file src/Render/ITemplateEngine.php
|
||||
*/
|
||||
|
||||
namespace Friendica\Render;
|
||||
|
||||
/**
|
||||
* Interface for template engines
|
||||
*/
|
||||
interface ITemplateEngine
|
||||
{
|
||||
public function replaceMacros($s, $v);
|
||||
public function getTemplateFile($file, $root = '');
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue