为什么 symfony 不识别我的资产?

Why aren't my assets recognised by symfony?

php bin/console assets:install --env=prod --symlink --relative

我的包不在生成的列表中。那里还有其他捆绑包。

bundle安装在vendors中(来自私有vcs),在symfony中注册,文件结构

Resources
----public
    ----js
        main.js
    ----css
        main.css
----assets

等...

包 class 是空的,但我认为这不是问题...

找到问题了。包 class WhateverBundle.php 需要与 Resources

位于同一目录中