TYPO3 CMS  TYPO3_7-6
ExtbaseRequirementsCheckUtility.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
22 {
28  public function getStatus()
29  {
30  $reports = [
31  'dbalExtensionIsInstalled' => $this->checkIfDbalExtensionIsInstalled()
32  ];
33  return $reports;
34  }
35 
41  protected function checkIfDbalExtensionIsInstalled()
42  {
43  if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('dbal')) {
44  $value = 'DBAL is loaded';
45  $message = 'The Database Abstraction Layer Extension (dbal) is loaded. Extbase does not fully support dbal at the moment. If you are aware of this fact or don\'t make use of the incompatible parts on this installation, you can ignore this notice.';
47  } else {
48  $value = 'DBAL is not loaded';
49  $message = '';
51  }
52  return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Reports\Status::class, 'DBAL Extension', $value, $message, $status);
53  }
54 }