mirror of
https://github.com/opdavies/gmail-filter-builder.git
synced 2025-03-13 05:26:57 +00:00
Import Twig classes, update templates path
This commit is contained in:
parent
e0751b7ed6
commit
0b31ff7577
|
@ -3,6 +3,8 @@
|
|||
namespace Opdavies\GmailFilterBuilder;
|
||||
|
||||
use Opdavies\Twig\Extensions\TwigBooleanStringExtension;
|
||||
use Twig_Environment;
|
||||
use Twig_Loader_Filesystem;
|
||||
|
||||
class Builder
|
||||
{
|
||||
|
@ -31,7 +33,7 @@ class Builder
|
|||
public function __construct(array $filters)
|
||||
{
|
||||
$this->twig = new Twig_Environment(
|
||||
new Twig_Loader_Filesystem(__DIR__.'/../templates')
|
||||
new Twig_Loader_Filesystem(__DIR__.'/../../../templates')
|
||||
);
|
||||
|
||||
$this->twig->addExtension(new TwigBooleanStringExtension());
|
||||
|
|
Loading…
Reference in a new issue