nattreid-cookie-policy
v2.2.17
Published
Cookie policy for Nette Framework
Downloads
4
Readme
Cookie Policy pro Nette Framework
Nastavení v config.neon
extensions:
cookiePolicy: NAtrreid\CookiePolicy\DI\CookiePolicyExtension
cookiePolicy:
enable: true
link: '/adresaStranky'
analytics: true
functional: true
commercial: true
Použití
/** @var NAttreid\CookiePolicy\ICookiePolicyFactory @inject */
public $cookiePolicyFactory;
protected function createComponentCookiePolicy() {
$control = $this->cookiePolicyFactory->create();
// pro zmenu jazyka
$control->translator->setLang('cs');
return $control;
}