‪TYPO3CMS  ‪main
AbstractDriver.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
24 
28 abstract class ‪AbstractDriver implements ‪CheckInterface
29 {
33  protected ‪$messageQueue;
34 
35  public function ‪__construct()
36  {
37  $this->messageQueue = new ‪FlashMessageQueue('install-database-check-driver');
38  }
39 
40  public function ‪getMessageQueue(): ‪FlashMessageQueue
41  {
43  }
44 
48  public function ‪getStatus(): ‪FlashMessageQueue
49  {
51  }
52 
57  protected function ‪checkPhpExtensions(string $extension): void
58  {
59  $systemEnvironmentCheck = GeneralUtility::makeInstance(Check::class);
60  $systemEnvironmentCheck->checkPhpExtension($extension);
61 
62  foreach ($systemEnvironmentCheck->getMessageQueue() as $message) {
63  $this->messageQueue->addMessage($message);
64  }
65  }
66 }
‪TYPO3\CMS\Install\SystemEnvironment\CheckInterface
Definition: CheckInterface.php:31
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver\AbstractDriver\checkPhpExtensions
‪checkPhpExtensions(string $extension)
Definition: AbstractDriver.php:56
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver\AbstractDriver\__construct
‪__construct()
Definition: AbstractDriver.php:34
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver\AbstractDriver\getMessageQueue
‪getMessageQueue()
Definition: AbstractDriver.php:39
‪TYPO3\CMS\Install\SystemEnvironment\Check
Definition: Check.php:45
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver\AbstractDriver\$messageQueue
‪FlashMessageQueue $messageQueue
Definition: AbstractDriver.php:32
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver
Definition: AbstractDriver.php:18
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver\AbstractDriver
Definition: AbstractDriver.php:29
‪TYPO3\CMS\Core\Utility\GeneralUtility
Definition: GeneralUtility.php:52
‪TYPO3\CMS\Core\Messaging\FlashMessageQueue
Definition: FlashMessageQueue.php:29
‪TYPO3\CMS\Install\SystemEnvironment\DatabaseCheck\Driver\AbstractDriver\getStatus
‪getStatus()
Definition: AbstractDriver.php:47