Skip to content

Commit

Permalink
Merge pull request #23 from bocharsky-bw/patch-1
Browse files Browse the repository at this point in the history
Fix highlighting code blocks
  • Loading branch information
Web solutions authored Jun 2, 2017
2 parents f34417a + 2c3c91f commit 3cf5d46
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 3cf5d46

Please sign in to comment.