Skip to content

Commit

Permalink
Fix highlighting code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
bocharsky-bw authored Jun 2, 2017
1 parent f34417a commit 2c3c91f
Showing 1 changed file with 36 additions and 37 deletions.
73 changes: 36 additions & 37 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,56 +20,55 @@ Installation

1. Add it to your composer.json:

```json
{
"require": {
"smart-core/accelerator-cache-bundle": "dev-master"
}
```json
{
"require": {
"smart-core/accelerator-cache-bundle": "dev-master"
}
```
}
```

or:

```sh
composer require smart-core/accelerator-cache-bundle
composer update smart-core/accelerator-cache-bundle
```
```sh
composer require smart-core/accelerator-cache-bundle
composer update smart-core/accelerator-cache-bundle
```

2. Add this bundle to your application kernel:

```php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new SmartCore\Bundle\AcceleratorCacheBundle\AcceleratorCacheBundle(),
// ...
);
}
```
```php
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new SmartCore\Bundle\AcceleratorCacheBundle\AcceleratorCacheBundle(),
// ...
);
}
```

3. Configure `accelerator_cache` service:

```yml
# app/config/config.yml
accelerator_cache:
host: http://example.com
web_dir: %kernel.root_dir%/../web
```
```yml
# app/config/config.yml
accelerator_cache:
host: http://example.com
web_dir: %kernel.root_dir%/../web
```
4. If you want to use curl rather than fopen set the following option:
```yml
# app/config/config.yml
accelerator_cache:
...
mode: curl
# additional options can be passed to the command
# curl_opts:
# CURLOPT_*: custom_value

```
```yml
# app/config/config.yml
accelerator_cache:
...
mode: curl
# additional options can be passed to the command
# curl_opts:
# CURLOPT_*: custom_value
```

Usage
=====
Expand Down

0 comments on commit 2c3c91f

Please sign in to comment.