Gazelle classes using a db or cache derive from Base

This commit is contained in:
Spine
2020-05-27 18:36:03 +02:00
parent 95296e5b1b
commit 23a8dc919c
136 changed files with 245 additions and 477 deletions
+3 -6
View File
@@ -2,15 +2,12 @@
namespace Gazelle\API;
abstract class AbstractAPI {
protected $db;
protected $cache;
abstract class AbstractAPI extends \Gazelle\Base {
protected $twig;
protected $config;
public function __construct(\DB_MYSQL $db, \CACHE $cache, \Twig\Environment $twig, array $config) {
$this->db = $db;
$this->cache = $cache;
public function __construct(\Twig\Environment $twig, array $config) {
parent::__construct();
$this->twig = $twig;
$this->config = $config;
}