mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-09-12 07:45:17 -04:00
Gazelle classes using a db or cache derive from Base
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user