douwei1944 2018-10-20 00:06
浏览 151

PhpStorm&Symfony - 无法让PhpStorm识别某些服务

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
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 求个正点原子stm32f407开发版的贪吃蛇游戏
    • ¥15 正弦信号发生器串并联电路电阻无法保持同步怎么办
    • ¥15 划分vlan后,链路不通了?
    • ¥20 求各位懂行的人,注册表能不能看到usb使用得具体信息,干了什么,传输了什么数据
    • ¥15 个人网站被恶意大量访问,怎么办
    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 Centos / PETGEM
    • ¥15 划分vlan后不通了
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)