This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# thx to alfred (https://github.com/alfredbez) for sharing | |
# add to modules/functions.php | |
use Monolog\Logger; | |
use Monolog\Handler\StreamHandler; | |
use OxidEsales\EshopCommunity\Internal\Container\ContainerFactory; | |
use Psr\Log\LoggerInterface; | |
use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException; | |
function getLogger() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* Put this in modules/functions.php */ | |
require_once __DIR__.'/../core/oxfunctions.php'; | |
function gn2_autoload_shim($class) { (substr($class, -7) == "_parent") ? eval('class '.$class.' {}') : ""; } | |
spl_autoload_register('gn2_autoload_shim'); | |
?> |