composer 自建package


网上搜了一大堆,但是有疑问:

通过 composer init 后,
并不会将文件纳入 psr4 或者psr0 自动加载中

我想问下你们难道是自己写进去的么?而不是composer自己帮你加载进去的

如下面这一段


 "autoload": {
    "psr-4": {
        "Ford\\Escape\\": "src/Ford/Escape",
        "Ford\\Fusion\\": "src/Ford/Fusion",
        "Ford\\Focus\\": "src/Ford/Focus",
        "Ford\\Fiesta\\": "src/Ford/Fiesta"
    }
   }

composer php

眨眼时已是未来 10 years, 6 months ago

试下不就知道了!

诚实的狐狸 answered 10 years, 6 months ago

Your Answer