1

我正在尝试在 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',
));

任何的想法!!

4

1 回答 1

2

我有类似的问题,但是我没有使用 git 手动安装,而是将minimum-stabilityflag 更改为devin composer.json

{
    "minimum-stability": "dev",
    "name": "symfony/framework-standard-edition",
    "description": "The \"Symfony Standard Edition\" distribution",

并添加了这些部门:

"require": {
    ...
    "knplabs/knp-menu-bundle": "dev-master",
    "cedriclombardot/admingenerator-generator-bundle": "dev-master"
于 2013-01-08T10:03:48.653 回答