Bonjour,
J'ai essayé d'installer FOSUserBundle en suivant le tuto de cette page :
http://j-place.developpez.com/tutori...avec-symfony2/
J'ai testé les 2 méthodes :
Téléchargement par le fichier deps :
Lorsque je tape la commande php bin/vendors install --reinstall
voila ce qui se passe :
et j'en passe et j'en passe
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47 'git' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Le chemin d'accès spécifié est introuvable. > Installing/Updating twig 'git' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Le chemin d'accès spécifié est introuvable. > Installing/Updating monolog 'git' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Le chemin d'accès spécifié est introuvable. > Installing/Updating doctrine-common 'git' n'est pas reconnu en tant que commande interne | | | Le chemin d'accès spécifié est introuvable. > Installing/Updating AsseticBundle 'git' n'est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Le chemin d'accès spécifié est introuvable. > Installing/Updating FOSUserBundle 'git' n'est pas reconnu en tant que commande interne | | | ch file or directory in C:\wamp\www\project\app\autoload.php on line 25 PHP Stack trace: PHP 1. {main}() C:\wamp\www\project\app\console:0 PHP 2. require_once() C:\wamp\www\project\app\console:10 PHP 3. require_once() C:\wamp\www\project\app\bootstrap.php.cache:3 Fatal error: require_once(): Failed opening required 'C:\wamp\www\project\app/ ../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php' (i nclude_path='.;C:\php\pear') in C:\wamp\www\project\app\autoload.php on line 25 Call Stack: 0.0006 328544 1. {main}() C:\wamp\www\project\app\console:0 0.0094 874224 2. require_once('C:\wamp\www\project\app\bootstrap.php .cache') C:\wamp\www\project\app\console:10 0.0103 889960 3. require_once('C:\wamp\www\project\app\autoload.php' .cache') C:\wamp\www\project\app\console:10 0.0103 889952 3. require_once('C:\wamp\www\project\app\autoload.php' ) C:\wamp\www\project\app\bootstrap.php.cache:3
Donc j'ai essaye le Téléchargement classique
J'ai installé le dossier ici :
C:\wamp\www\project\vendor\bundles\FOS\UserBundle
puis j'ai suivi a la lettre le reste de l'explication :
Ouvrez le fichier app/AppKernel.php et insérez la ligne :
Ouvrez le fichier Symfony2/app/autoload.php et insérez la ligne :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 public function registerBundles() { $bundles = array( // ... new FOS\UserBundle\FOSUserBundle(), ); }
et une fois que tout cela est fait si je veu allé sur une page de mon site voila le résultat :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 $loader->registerNamespaces(array( // ... 'FOS' => __DIR__.'/../vendor/bundles', ));
Ou est ce que j'ai merdé ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 Whoops, looks like something went wrong. 1/1 InvalidConfigurationException: The child node "db_driver" at path "fos_user" must be configured. in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\Config\Definition\ArrayNode.php line 196 at ArrayNode->finalizeValue() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\Config\Definition\BaseNode.php line 205 at BaseNode->finalize() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\Config\Definition\Processor.php line 39 at Processor->process() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\Config\Definition\Processor.php line 52 at Processor->processConfiguration() in C:\wamp\www\project\vendor\bundles\FOS\UserBundle\DependencyInjection\FOSUserExtension.php line 28 at FOSUserExtension->load() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\DependencyInjection\Compiler\MergeExtensionConfigurationPass.php line 42 at MergeExtensionConfigurationPass->process() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\HttpKernel\DependencyInjection\MergeExtensionConfigurationPass.php line 39 at MergeExtensionConfigurationPass->process() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\DependencyInjection\Compiler\Compiler.php line 119 at Compiler->compile() in C:\wamp\www\project\vendor\symfony\src\Symfony\Component\DependencyInjection\ContainerBuilder.php line 435 at ContainerBuilder->compile() in C:\wamp\www\project\app\bootstrap.php.cache line 868 at Kernel->buildContainer() in C:\wamp\www\project\app\bootstrap.php.cache line 779 at Kernel->initializeContainer() in C:\wamp\www\project\app\bootstrap.php.cache line 513 at Kernel->boot() in C:\wamp\www\project\app\bootstrap.php.cache line 544 at Kernel->handle() in C:\wamp\www\project\web\app_dev.php line 24
mon site est en local avec Wamp 2.2 , PHP 5.3.8 j'utilise firefox 8
Merci d'avance
Partager