composer exclude-from-classmap无效

时间:2016-01-10 06:55:11

标签: php laravel npm composer-php autoload

所以我在composer.json中有以下内容

 "autoload": {
        "classmap": [
            "database", "app/path1"
        ],
        "psr-4": {
            "App\\": "app/"
        },
        "exclude-from-classmap": [
          "/app/path1/Front/"
        ]
    },

然而当我运行composer dump-autoload -o时,它仍然会抱怨

  [Symfony\Component\Finder\Exception\AccessDeniedException]
  RecursiveDirectoryIterator::__construct(C:/app\path1\Front\
  node_modules\babel-preset-react\node_modules\babel-plugin-transform-react-j
  sx\node_modules\babel-helper-builder-react-jsx\node_modules\babel-types\nod
  e_modules\babel-traverse\node_modules\babel-code-frame\node_modules\chalk,C
  :/app\path1\Front\node_modules\babel-preset-react\node_modu
  les\babel-plugin-transform-react-jsx\node_modules\babel-helper-builder-reac
  t-jsx\node_modules\babel-types\node_modules\babel-traverse\node_modules\bab
  el-code-frame\node_modules\chalk): The system cannot find the path specifie
  d. (code: 3)






  [UnexpectedValueException]
  RecursiveDirectoryIterator::__construct(C:/app\path1\Front\
  node_modules\babel-preset-react\node_modules\babel-plugin-transform-react-j
  sx\node_modules\babel-helper-builder-react-jsx\node_modules\babel-types\nod
  e_modules\babel-traverse\node_modules\babel-code-frame\node_modules\chalk,C
  :/app\path1\Front\node_modules\babel-preset-react\node_modu
  les\babel-plugin-transform-react-jsx\node_modules\babel-helper-builder-reac
  t-jsx\node_modules\babel-types\node_modules\babel-traverse\node_modules\bab
  el-code-frame\node_modules\chalk): The system cannot find the path specifie
  d. (code: 3)

这意味着它并没有真正排除/ app / path1 / Front /

我做错了什么以及如何排除该目录以使其不会返回这些例外

0 个答案:

没有答案