21 lines
470 B
PHP
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;
|
|
}
|
|
}
|
|
}
|