| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <?php
- /* vim: set expandtab sw=4 ts=4 sts=4: */
- /**
- * Holds the PMA\TableController
- *
- * @package PMA
- */
- namespace PMA\Controllers;
- use PMA\DI\Container;
- use PMA_DatabaseInterface;
- use PMA_Response;
- if (!defined('PHPMYADMIN')) {
- exit;
- }
- require_once 'libraries/di/Container.class.php';
- require_once 'libraries/database_interface.inc.php';
- /**
- * Base class for all of controller
- *
- * @package PhpMyAdmin
- */
- abstract class Controller
- {
- /**
- * @var PMA_Response
- */
- protected $response;
- /**
- * @var PMA_DatabaseInterface
- */
- protected $dbi;
- /**
- * @var Container
- */
- protected $container;
- /**
- * Constructor
- */
- public function __construct()
- {
- $container = Container::getDefaultContainer();
- $this->container = $container;
- $this->dbi = $this->container->get('dbi');
- $this->response = $this->container->get('response');
- }
- }
|