aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilly Micieli <micieli@laposte.net>2019-10-26 18:28:36 +0200
committerWilly Micieli <micieli@laposte.net>2019-10-26 18:28:36 +0200
commitf50839362e20fd11f64ecd40da28034a6984c2a7 (patch)
tree2d739b4e44ea0cde58b2805fc92a674c066264f2
parent74b8d02d32dd3f5f14244083b303ce5f8cd98d0b (diff)
downloadimperium-f50839362e20fd11f64ecd40da28034a6984c2a7.zip
imperium-f50839362e20fd11f64ecd40da28034a6984c2a7.tar.gz
create missing instance10.5.3
-rw-r--r--README.md4
-rw-r--r--imperium/View/View.php10
2 files changed, 7 insertions, 7 deletions
diff --git a/README.md b/README.md
index 720d8f3..facbe46 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ It's a library written to be useful for everybody, in order to manage dbs and to
`composer require imperium/imperium`
* [**Source code**](https://git.fumseck.eu/cgit/imperium)
- * [**Download**](https://git.fumseck.eu/cgit/imperium/snapshot/imperium-10.5.2.zip)
+ * [**Download**](https://git.fumseck.eu/cgit/imperium/snapshot/imperium-10.5.3.zip)
* [**Report a bug**](mailto:bugzilla@laposte.net)
- * [**Show diff**](https://git.fumseck.eu/cgit/imperium/diff/?id=10.5.2&id2=10.5.1&dt=2)
+ * [**Show diff**](https://git.fumseck.eu/cgit/imperium/diff/?id=10.5.3&id2=10.5.2&dt=2)
diff --git a/imperium/View/View.php b/imperium/View/View.php
index ff0a6ae..2372543 100644
--- a/imperium/View/View.php
+++ b/imperium/View/View.php
@@ -292,7 +292,7 @@
public function add_filters(array $filters) : void
{
foreach($filters as $filter)
- $this->twig()->addFilter($filter);
+ $this->twig()->addFilter(new $filter());
}
/**
@@ -306,7 +306,7 @@
public function add_test(array $tests) : void
{
foreach($tests as $test)
- $this->twig()->addTest($test);
+ $this->twig()->addTest(new $test());
}
/**
@@ -333,7 +333,7 @@
public function add_extensions(array $extensions) : void
{
foreach($extensions as $extension)
- $this->twig()->addExtension($extension);
+ $this->twig()->addExtension(new $extension());
}
/**
@@ -344,7 +344,7 @@
public function add_tags(array $extensions) : void
{
foreach($extensions as $extension)
- $this->twig()->addTokenParser($extension);
+ $this->twig()->addTokenParser(new $extension());
}
/**
@@ -353,7 +353,7 @@
public function add_functions(array $functions): void
{
foreach($functions as $function)
- $this->twig()->addFunction($function);
+ $this->twig()->addFunction(new $function());
}
}