我正在尝试在 symfony 的最新版本中安装 AdmingeneratorGeneratorBundle 但我遇到了几个问题
首先我尝试使用作曲家,但我得到了这个错误
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package cedriclombardot/admingenerator-generator-bundle could not be found in any version, there may be a typo in the package name.
Problem 2
- The requested package knplabs/knp-menu-bundle master could not be found.
最后我用 git 安装了所有的 vendor
这个vendor的安装比较广泛,所以在安装TwigGenerator之前必须执行
php app/console admin:setup
但我收到此错误
PHP Fatal error: Call to undefined method Composer\Autoload\ClassLoader::registerNamespaces() in
autoLoad 文件中的第 14 行包含此..
$loader->registerNamespaces(array(
'Admingenerator' => array(__DIR__.'/../src', __DIR__.'/../vendor/bundles'),
'Sensio\Bundle' => __DIR__.'/../vendor/bundles',
'Knp\Bundle' => __DIR__.'/../vendor/bundles',
'Knp\Menu' => __DIR__.'/../vendor/KnpMenu/src',
));
任何的想法!!