Symfony 4, не могу получить пул кеша
В версии 4 я не могу получить доступ к приложению и системе общих кэшей , а также к своему пользовательскому пулу кэшей.
Странные вещи, все они зарегистрированы в контейнере и отображаются с помощью команды bin/console debug:container, но когда я пытаюсь получить их через $this->get("cache.app|cache.system|cache.custom"), я получаю ServiceNotFoundException. Есть идеи?
framework.yaml
framework:
secret: '%env(APP_SECRET)%'
default_locale: ru
#csrf_protection: ~
#http_method_override: true
#trusted_hosts: ~
# uncomment this entire section to enable sessions
#session:
# # With this config, PHP's native session handling is used
# handler_id: ~
#esi: ~
#fragments: ~
php_errors:
log: true
cache:
prefix_seed: "custom"
app: cache.adapter.redis
system: cache.adapter.apcu
pools:
cache.custom:
name: "cache.custom"
public: true
adapter: cache.app