objects derived from Base have their own $twig

This commit is contained in:
Spine
2023-02-03 11:13:46 +01:00
parent 54e113afd9
commit 1f57b5ca42
8 changed files with 11 additions and 22 deletions
+1 -3
View File
@@ -3,12 +3,10 @@
namespace Gazelle\API;
abstract class AbstractAPI extends \Gazelle\Base {
protected $twig;
protected $config;
public function __construct(\Twig\Environment $twig, array $config) {
public function __construct(array $config) {
parent::__construct();
$this->twig = $twig;
$this->config = $config;
}