Files
kupshop/bundles/KupShop/RestrictionsBundle/RestrictionsBundle.php
2025-08-02 16:30:27 +02:00

21 lines
470 B
PHP

<?php
namespace KupShop\RestrictionsBundle;
use KupShop\KupShopBundle\Config;
use Symfony\Component\HttpKernel\Bundle\Bundle;
class RestrictionsBundle extends Bundle
{
public function boot()
{
parent::boot();
$cfg = &Config::get()->getContainer();
// B2B modul to zapina, ale je potreba to jeste pridat do cfg
if (empty($cfg['Modules']['restrictions'])) {
$cfg['Modules']['restrictions'] = true;
}
}
}