![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/wyomind/framework/Logger/Handler/ |
<?php /** * Copyright © 2020 Wyomind. All rights reserved. * See LICENSE.txt for license details. */ namespace Wyomind\Framework\Logger\Handler; use Magento\Framework\App\ProductMetadata; use Magento\Framework\Filesystem\DriverInterface; /** * Class Base * @package Wyomind\Framework\Logger\Handler */ class Base extends \Magento\Framework\Logger\Handler\Base { /** * @param DriverInterface $filesystem * @param ProductMetadata $productMetaData * @param string $filePath * @param string $fileName * @throws \Exception */ public function __construct( DriverInterface $filesystem, ProductMetadata $productMetaData, $filePath = null, $fileName = null ) { $explodedVersion = explode("-", $productMetaData->getVersion()); $magentoVersion = $explodedVersion[0]; if (version_compare($magentoVersion, "2.2.0", "<")) { $filePath = BP . $fileName; parent::__construct($filesystem, $filePath); } else { parent::__construct($filesystem, $filePath, $fileName); } } }