Skip to content

Commit

Permalink
Remove Assetic - Update composer.json and README.md (ezsystems#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodmf authored and SylvainGuittard committed Jul 21, 2017
1 parent 1f1446f commit cf326a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
14 changes: 11 additions & 3 deletions README.md
Expand Up @@ -24,9 +24,6 @@ Enable the bundle in `app/AppKernel.php` file:
$bundles = array(
// existing bundles
new EzSystems\PrivacyCookieBundle\EzSystemsPrivacyCookieBundle(),

// starting from Symfony 2.8 you have to enable AsseticBundle manually if you haven't done it before
new Symfony\Bundle\AsseticBundle\AsseticBundle()
);
```

Expand All @@ -42,6 +39,16 @@ bundles/ezsystemsprivacycookie/css/privacycookie.css
bundles/ezsystemsprivacycookie/js/privacycookie.js
```

### Assetic (*Optional*)
Enable the Assetic bundle in `app/AppKernel.php` file:

$bundles = array(
// ...
// starting from Symfony 2.8 you have to enable AsseticBundle manually if you haven't done it before
new Symfony\Bundle\AsseticBundle\AsseticBundle()
);


Add the following minimal configuration in `config.yml` file to enable `Assetic` support in your application (Symfony 2.8 and later):

```yaml
Expand Down Expand Up @@ -136,3 +143,4 @@ Example of usage extraParams:
}
}) }}
```

3 changes: 1 addition & 2 deletions composer.json
Expand Up @@ -11,8 +11,7 @@
}
],
"require": {
"symfony/symfony": "^2.6|^3.0",
"symfony/assetic-bundle": "^2.3"
"symfony/symfony": "^2.6|^3.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit cf326a7

Please sign in to comment.