platform/api/symfony/Component/HttpKernel/CacheClearer/Psr6CacheClearer.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: Psr6CacheClearer
class_comment: '# * @author Nicolas Grekas <p@tchwork.com>'
dependencies:
- name: CacheItemPoolInterface
type: class
source: Psr\Cache\CacheItemPoolInterface
properties: []
methods:
- name: __construct
visibility: public
parameters:
- name: pools
default: '[]'
comment: "# * @author Nicolas Grekas <p@tchwork.com>\n# */\n# class Psr6CacheClearer\
\ implements CacheClearerInterface\n# {\n# private array $pools = [];\n# \n# /**\n\
# * @param array<string, CacheItemPoolInterface> $pools"
- name: hasPool
visibility: public
parameters:
- name: name
comment: null
- name: getPool
visibility: public
parameters:
- name: name
comment: '# * @throws \InvalidArgumentException If the cache pool with the given
name does not exist'
- name: clearPool
visibility: public
parameters:
- name: name
comment: '# * @throws \InvalidArgumentException If the cache pool with the given
name does not exist'
- name: clear
visibility: public
parameters:
- name: cacheDir
comment: null
traits:
- Psr\Cache\CacheItemPoolInterface
interfaces:
- CacheClearerInterface