Skip to content

Commit

Permalink
Merge pull request #62 from mundipagg/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
michelpl authored Feb 25, 2019
2 parents 969962f + 3739dd7 commit 731c7ec
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
9 changes: 7 additions & 2 deletions Concrete/Magento2CoreSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use MundiPagg\MundiPagg\Gateway\Transaction\Base\Config\Config;
use MundiPagg\MundiPagg\Helper\ModuleHelper;
use MundiPagg\MundiPagg\Model\Enum\CreditCardBrandEnum;
use Magento\Framework\Filesystem\DirectoryList;

final class Magento2CoreSetup extends AbstractModuleCoreSetup
{
Expand All @@ -27,9 +28,13 @@ static protected function setModuleVersion()

static protected function setLogPath()
{
$objectManager = ObjectManager::getInstance();

$directoryConfig = $objectManager->get(DirectoryList::class);

self::$logPath = [
'var/log',
'var/report'
$directoryConfig->getPath('log'),
$directoryConfig->getPath('var') . DIRECTORY_SEPARATOR . 'report'
];
}

Expand Down
Loading

0 comments on commit 731c7ec

Please sign in to comment.