Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create server status abstract controller
Create PhpMyAdmin\Controllers\Server\Status\Controller abstract controller. Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
- Loading branch information
1 parent
5368c15
commit c9a3145
Showing
5 changed files
with
48 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
libraries/classes/Controllers/Server/Status/Controller.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
/* vim: set expandtab sw=4 ts=4 sts=4: */ | ||
/** | ||
* Holds the PhpMyAdmin\Controllers\Server\Status\Controller | ||
* | ||
* @package PhpMyAdmin\Controllers | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace PhpMyAdmin\Controllers\Server\Status; | ||
|
||
use PhpMyAdmin\Controllers\Controller as BaseController; | ||
use PhpMyAdmin\Server\Status\Data; | ||
|
||
/** | ||
* Abstract class Controller | ||
* @package PhpMyAdmin\Controllers\Server\Status | ||
*/ | ||
abstract class Controller extends BaseController | ||
{ | ||
/** | ||
* @var Data | ||
*/ | ||
protected $data; | ||
|
||
/** | ||
* Controller constructor. | ||
* @param \PhpMyAdmin\Response $response Response object | ||
* @param \PhpMyAdmin\DatabaseInterface $dbi DatabaseInterface object | ||
* @param Data $data Data object | ||
*/ | ||
public function __construct($response, $dbi, $data) | ||
{ | ||
parent::__construct($response, $dbi); | ||
$this->data = $data; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters