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

Fix loggers

parent 8322e731
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ namespace SLUB\Bison\Utility;
use TYPO3\CMS\Core\Cache\CacheManager;
use TYPO3\CMS\Core\Http\RequestFactory;
use TYPO3\CMS\Core\Log\Logger;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -42,7 +43,7 @@ class CurrencyConverter implements \TYPO3\CMS\Core\SingletonInterface
/**
* This holds the logger
*
* @var LogManager
* @var Logger
* @access private
*/
private $logger;
......
......@@ -12,7 +12,6 @@ namespace Slub\Bison\Utility;
*/
use PhpOffice\PhpSpreadsheet\IOFactory;
use TYPO3\CMS\Core\Log\LogManager;
use TYPO3\CMS\Core\Configuration\ExtensionConfiguration;
use TYPO3\CMS\Core\Utility\GeneralUtility;
......@@ -31,14 +30,6 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
abstract class SpreadsheetLoader
{
/**
* This holds the logger
*
* @var LogManager
* @access protected
*/
protected $logger;
/**
* @var array
* @access protected
......@@ -65,7 +56,6 @@ abstract class SpreadsheetLoader
public function __construct($file)
{
$this->extConfig = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('bison');
$this->logger = GeneralUtility::makeInstance(LogManager::class)->getLogger(get_class($this));
$results = [];
$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