Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Apr 28, 2021
1 parent e8a5566 commit f8bb304
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions readme.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Форк [пакета](https://github.com/csarrazi/CsaGuzzleBundle), доработано под личные нужды (добавлен адаптер для кэширования в Битриксе, и т.п).


## Установка

1) `composer require proklung/symfony-guzzle-bundle`
Expand Down Expand Up @@ -229,6 +230,28 @@ acme.client:
- { name: csa_guzzle.client, middleware: 'my_middleware another_middleware'}
```

## BitrixCacheAdapter

Определяется сервис кэширования. Например, так:

```yaml
bitrix.psr.cacher:
class: WebArch\BitrixCache\AntiStampedeCacheAdapter
arguments: ['/', 3600, 'cache/s1/psr-cache']

bitrix.psr.cacher.adapter:
class: Local\Bundles\GuzzleBundle\Middlewares\Cache\Adapter\PsrAdapter
arguments: ['@bitrix.psr.cacher', 3600]
```

И в конфигурации бандла указывается:

```yaml
cache:
enabled: true
adapter: bitrix.psr.cacher.adapter
```

### Available middleware

Currently, five middleware are available:
Expand Down

0 comments on commit f8bb304

Please sign in to comment.