Using Composer's Autoload

后端 未结 6 630
挽巷
挽巷 2020-11-30 19:55

I have been looking around the net with no luck on this issue. I am using composer\'s autoload with this code in my composer.json:

\"autoload\":         


        
6条回答
  •  自闭症患者
    2020-11-30 20:14

    The autoload config does start below the vendor dir. So you might want change the vendor dir, e.g.

    {
        "config": {
            "vendor-dir": "../vendor/"
        },
        "autoload": {
            "psr-0": {"AppName": "src/"}
        }
    }
    

    Or isn't this possible in your project?

提交回复
热议问题