Skip to content
Snippets Groups Projects
Commit 07beba4f authored by Beatrycze Volk's avatar Beatrycze Volk
Browse files

Fix loggers

parent 8322e731
Branches
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ namespace SLUB\Bison\Utility; ...@@ -13,6 +13,7 @@ namespace SLUB\Bison\Utility;
use TYPO3\CMS\Core\Cache\CacheManager; use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Http\RequestFactory; use TYPO3\CMS\Core\Http\RequestFactory;
use TYPO3\CMS\Core\Log\Logger;
use TYPO3\CMS\Core\Log\LogManager; use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
...@@ -42,7 +43,7 @@ class CurrencyConverter implements \TYPO3\CMS\Core\SingletonInterface ...@@ -42,7 +43,7 @@ class CurrencyConverter implements \TYPO3\CMS\Core\SingletonInterface
/** /**
* This holds the logger * This holds the logger
* *
* @var LogManager * @var Logger
* @access private * @access private
*/ */
private $logger; private $logger;
......
...@@ -12,7 +12,6 @@ namespace Slub\Bison\Utility; ...@@ -12,7 +12,6 @@ namespace Slub\Bison\Utility;
*/ */
use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\IOFactory;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration; use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\GeneralUtility;
...@@ -31,14 +30,6 @@ use TYPO3\CMS\Core\Utility\GeneralUtility; ...@@ -31,14 +30,6 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
abstract class SpreadsheetLoader abstract class SpreadsheetLoader
{ {
/**
* This holds the logger
*
* @var LogManager
* @access protected
*/
protected $logger;
/** /**
* @var array * @var array
* @access protected * @access protected
...@@ -65,7 +56,6 @@ abstract class SpreadsheetLoader ...@@ -65,7 +56,6 @@ abstract class SpreadsheetLoader
public function __construct($file) public function __construct($file)
{ {
$this->extConfig = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('bison'); $this->extConfig = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('bison');
$this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(get_class($this));
$results = []; $results = [];
$spreadsheet = IOFactory::load($this->extConfig[$file]); $spreadsheet = IOFactory::load($this->extConfig[$file]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment