IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

Erreur a la creation du bundle


Sujet :

Symfony PHP

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Juin 2009
    Messages
    71
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2009
    Messages : 71
    Points : 31
    Points
    31
    Par défaut Erreur a la creation du bundle
    Bonjour,
    je voulais realiser un bundle mais je recois und erreur

    le check de l autoload n a pas marché , savez vous pourquoi `?

    Po

    Edit the composer.json file and register the bundle
    namespace in the "autoload" section

    merci

    Voila mes commande
    Pour info mon projet est dans le dosser inmycity et non



    C:\wamp\www\Inmycity>php app/console generate:bundle


    Welcome to the Symfony2 bundle generator



    Your application code must be written in bundles. This command helps
    you generate them easily.

    Each bundle is hosted under a namespace (like Acme/Bundle/BlogBundle).
    The namespace should begin with a "vendor" name like your company name, your
    project name, or your client name, followed by one or more optional category
    sub-namespaces, and it should end with the bundle name itself
    (which must have Bundle as a suffix).

    See http://symfony.com/doc/current/cookb...s.html#index-1
    for more
    details on bundle naming conventions.

    Use / instead of \ for the namespace delimiter to avoid any problem.

    Bundle namespace: Inmycity/InmycityBundle

    In your code, a bundle is often referenced by its name. It can be the
    concatenation of all namespace parts but it's really up to you to come
    up with a unique name (a good practice is to start with the vendor name).
    Based on the namespace, we suggest InmycityInmycityBundle.

    Bundle name [InmycityInmycityBundle]: InmycityBundle

    The bundle can be generated anywhere. The suggested default directory uses
    the standard conventions.

    Target directory [C:/wamp/www/path/src]: C:/wamp/www/Inmycity/path/scr

    Determine the format to use for the generated configuration.

    Configuration format (yml, xml, php, or annotation): yml

    To help you get started faster, the command can generate some
    code snippets for you.

    Do you want to generate the whole directory structure [no]? yes


    Summary before generation


    You are going to generate a "Inmycity\InmycityBundle\InmycityBundle" bundle
    in "C:/wamp/www/Inmycity/path/scr/" using the "yml" format.

    Do you confirm generation [yes]? yes


    Bundle generation


    Generating the bundle code: OK
    Checking that the bundle is autoloaded: FAILED
    Confirm automatic update of your Kernel [yes]? yes
    Enabling the bundle inside the Kernel: OK
    Confirm automatic update of the Routing [yes]? yes
    Importing the bundle routing resource: FAILED


    The command was not able to configure everything automatically.
    You must do the following changes manually.


    - Edit the composer.json file and register the bundle
    namespace in the "autoload" section:

    Bundle InmycityBundle is already imported.


    C:\wamp\www\Inmycity>php app/console generate:bundle

    Fatal error: Class 'Inmycity\InmycityBundle\InmycityBundle' not found in C:\wamp
    \www\Inmycity\app\AppKernel.php on line 19

    Call Stack:
    0.0002 233728 1. {main}() C:\wamp\www\Inmycity\app\console:0
    0.0264 3380312 2. Symfony\Component\Console\Application->run() C:\wamp\
    www\Inmycity\app\console:27
    0.0302 3611752 3. Symfony\Bundle\FrameworkBundle\Console\Application->d
    oRun() C:\wamp\www\Inmycity\vendor\symfony\symfony\src\Symfony\Component\Console
    \Application.php:124
    0.0302 3611976 4. Symfony\Component\HttpKernel\Kernel->boot() C:\wamp\w
    ww\Inmycity\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Ap
    plication.php:70
    0.0303 3612256 5. Symfony\Component\HttpKernel\Kernel->initializeBundle
    s() C:\wamp\www\Inmycity\app\bootstrap.php.cache:2283
    0.0303 3612656 6. AppKernel->registerBundles() C:\wamp\www\Inmycity\app
    \bootstrap.php.cache:2453


    C:\wamp\www\Inmycity>php app/console generate:bundle

    Fatal error: Class 'Inmycity\InmycityBundle\InmycityBundle' not found in C:\wamp
    \www\Inmycity\app\AppKernel.php on line 19

    Call Stack:
    0.0002 233728 1. {main}() C:\wamp\www\Inmycity\app\console:0
    0.0289 3380312 2. Symfony\Component\Console\Application->run() C:\wamp\
    www\Inmycity\app\console:27
    0.0327 3611752 3. Symfony\Bundle\FrameworkBundle\Console\Application->d
    oRun() C:\wamp\www\Inmycity\vendor\symfony\symfony\src\Symfony\Component\Console
    \Application.php:124
    0.0327 3611976 4. Symfony\Component\HttpKernel\Kernel->boot() C:\wamp\w
    ww\Inmycity\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Console\Ap
    plication.php:70
    0.0327 3612256 5. Symfony\Component\HttpKernel\Kernel->initializeBundle
    s() C:\wamp\www\Inmycity\app\bootstrap.php.cache:2283
    0.0327 3612656 6. AppKernel->registerBundles() C:\wamp\www\Inmycity\app
    \bootstrap.php.cache:2453


    C:\wamp\www\Inmycity>

  2. #2
    Membre expert
    Avatar de dukoid
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Novembre 2012
    Messages
    2 100
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur informatique

    Informations forums :
    Inscription : Novembre 2012
    Messages : 2 100
    Points : 3 004
    Points
    3 004
    Par défaut
    yééé man, rastafariiiiiiiiiiiiiii




    il y a un pb autoload dans composer.json surement un mauvais code, je ne sais ou ..

    reprends un projet propre ou tu démarre dessus.

Discussions similaires

  1. [DEV] Creation de bundle .app
    Par vip8r dans le forum Apple
    Réponses: 0
    Dernier message: 18/12/2008, 16h07
  2. [2.1 -> 2.2] Erreur à la création de l'engine
    Par tibouchou dans le forum BIRT
    Réponses: 28
    Dernier message: 16/08/2007, 14h20
  3. Erreur à la création des branches ?
    Par elitost dans le forum Applications et environnements graphiques
    Réponses: 1
    Dernier message: 20/08/2006, 23h31
  4. [VS.NET] Erreur de server - creation d'un projet impossible
    Par Pepito dans le forum Framework .NET
    Réponses: 2
    Dernier message: 08/12/2005, 13h15
  5. [VB.NET] Erreur sur la creation dynamique d'une texbox
    Par headcooper dans le forum ASP.NET
    Réponses: 4
    Dernier message: 01/07/2004, 19h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo