Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaplean/cookie-bundle
https://github.com/chaplean/cookie-bundle
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/chaplean/cookie-bundle
- Owner: chaplean
- Created: 2019-07-10T07:39:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-09-30T20:18:21.000Z (over 2 years ago)
- Last Synced: 2024-04-04T19:44:32.809Z (9 months ago)
- Language: CSS
- Size: 205 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Getting Started With Chaplean Cookie Bundle
===========================================# Installation
## 1. Composer
```
composer require chaplean/cookie-bundle
```## 2. AppKernel.php
Add
```
new Chaplean\Bundle\CookieBundle\ChapleanCookieBundle(),
```## 3. Set learn_more
Add a url for learn_more in headband.
app/config/config.yml:
```yaml
chaplean_cookie:
learn_more:
translations: ~
```## 4. Update assetic
Add this bundle in assetic config:
```yaml
assetic:
bundles: ['ChapleanCookieBundle']
```## 5. Add routes
Include a routing in global routing
app/config/routing.yml:
```yaml
chaplean_cookie_bundle:
resource: '@ChapleanCookieBundle/Resources/config/routing.yml'
prefix: /
```## 6. Add script in layout
In layout html add me simply:
```html
```