@@ -15,12 +15,12 @@ |
||
| 15 | 15 | $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
| 16 | 16 | $loader->load('services.xml'); |
| 17 | 17 | $config = $this->processConfiguration(new Configuration(), $configs); |
| 18 | - $container->setParameter('msalsas_gdpr_consent_banner.has_translations', $config['has_translations']); |
|
| 19 | - $container->setParameter('msalsas_gdpr_consent_banner.css', $config['css']); |
|
| 20 | - $container->setParameter('msalsas_gdpr_consent_banner.fade_time', $config['fade_time']); |
|
| 21 | - $container->setParameter('msalsas_gdpr_consent_banner.text_message', $config['text_message']); |
|
| 22 | - $container->setParameter('msalsas_gdpr_consent_banner.accept_message', $config['accept_message']); |
|
| 23 | - $container->setParameter('msalsas_gdpr_consent_banner.time_to_expire', $config['time_to_expire']); |
|
| 18 | + $container->setParameter('msalsas_gdpr_consent_banner.has_translations', $config['has_translations']); |
|
| 19 | + $container->setParameter('msalsas_gdpr_consent_banner.css', $config['css']); |
|
| 20 | + $container->setParameter('msalsas_gdpr_consent_banner.fade_time', $config['fade_time']); |
|
| 21 | + $container->setParameter('msalsas_gdpr_consent_banner.text_message', $config['text_message']); |
|
| 22 | + $container->setParameter('msalsas_gdpr_consent_banner.accept_message', $config['accept_message']); |
|
| 23 | + $container->setParameter('msalsas_gdpr_consent_banner.time_to_expire', $config['time_to_expire']); |
|
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | public function prepend(ContainerBuilder $container) |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | public function getResponseWithAcceptedCookie() |
| 20 | 20 | { |
| 21 | - $cookie = Cookie::create('msalsas-gdpr-consent-banner', 'accepted', strtotime('now + ' . $this->timeToExpire)); |
|
| 21 | + $cookie = Cookie::create('msalsas-gdpr-consent-banner', 'accepted', strtotime('now + '.$this->timeToExpire)); |
|
| 22 | 22 | $response = new Response("accepted"); |
| 23 | 23 | $response->headers->setCookie($cookie); |
| 24 | 24 | |