I gave a bit of problem with my IDE.
I installed recently doctrine/orm
(with the bundle) and on the auto generated config files I have this:
services:
doctrine.result_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
public: false
arguments:
- '@doctrine.result_cache_pool'
Here, my IDE can't recognise the @doctrine.result_cache_pool
Service.
While here
doctrine:
orm:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
He recognise the service doctrine.system_cache_provider
It generates a warning, and I'd like to "fix" it.
As I have all the time I want to develop this app I want to make it as clean as possible (without warning, error etc.)
So the question is: What is this service ? Why PhpStorm can't recognise ? Is there a way to make it recognise it, or ignore this type of warning only for this file/type of file ?
edit : full files autogenerated by doctrine/orm
doctrine:
orm:
metadata_cache_driver:
type: service
id: doctrine.system_cache_provider
query_cache_driver:
type: service
id: doctrine.system_cache_provider
result_cache_driver:
type: service
id: doctrine.result_cache_provider
services:
doctrine.result_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
public: false
arguments:
- '@doctrine.result_cache_pool'
doctrine.system_cache_provider:
class: Symfony\Component\Cache\DoctrineProvider
public: false
arguments:
- '@doctrine.system_cache_pool'
framework:
cache:
pools:
doctrine.result_cache_pool:
adapter: cache.app
doctrine.system_cache_pool:
adapter: cache.system