symfony2admingenerator / AdmingeneratorGeneratorBundle

(old-legacy) Admingenerator for Symfony2, parse generator.yml files to build classes
http://symfony2admingenerator.org/
MIT License
360 stars 125 forks source link

Installation via composer with Symfony 2.3.x #759

Open mysterty opened 10 years ago

mysterty commented 10 years ago

hello, i'm having trouble installing the bundle. I followed all step from https://github.com/symfony2admingenerator/AdmingeneratorGeneratorBundle/blob/master/Resources/doc/installation/installation-via-composer.md. So added :

    "require": {
        "php": ">=5.3.3",
        "symfony/symfony": "2.3.*",
        ...,
    "cedriclombardot/admingenerator-generator-bundle": "2.3.*@dev"
    },
    "config": {
        "bin-dir": "bin",
        "component-dir": "web/components"
    },
    "minimum-stability": "dev",
   ...

but when i run composer update, i have this message :

Loading composer repositories with package information
Updating dependencies (including require-dev)
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.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see  for more details.

Read  for further common problems.

could you please help me ?

ioleo commented 10 years ago

@mysterty Hi. This part of documentation needs an update. Sorry for your trouble.

There are only two major branches right now:

So, add to your composer "cedriclombardot/admingenerator-generator-bundle": "~1.1"

ioleo commented 10 years ago

TODO: update the documentation

mysterty commented 10 years ago

Thx Loostro.

I tried also to follow the entire doc unless using : "1.2.*@dev" as bundle version, it works. But wich is the best ?

ioleo commented 10 years ago

@mysterty 1.1 and 1.0 branches share the same functionality, they just use diffrent version of Bootstrap

however, future versions will be built upon 1.1 branch (bootstrap3) so I suggest you use that branch, as it will be easier to update to next version