Controller.php 639 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Holds the PhpMyAdmin\Controllers\Controller
  5. *
  6. * @package PhpMyAdmin\Controllers
  7. */
  8. namespace PhpMyAdmin\Controllers;
  9. use PhpMyAdmin\DatabaseInterface;
  10. use PhpMyAdmin\Response;
  11. /**
  12. * Base class for all of controller
  13. *
  14. * @package PhpMyAdmin\Controllers
  15. */
  16. abstract class Controller
  17. {
  18. /**
  19. * @var Response
  20. */
  21. protected $response;
  22. /**
  23. * @var DatabaseInterface
  24. */
  25. protected $dbi;
  26. /**
  27. * Constructor
  28. */
  29. public function __construct($response, $dbi)
  30. {
  31. $this->response = $response;
  32. $this->dbi = $dbi;
  33. }
  34. }