Bonjour,

J'utilise liuggio / ExcelBundle pour la génération de fichiers Excel.

deps:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
[n3bStreamresponse]
    git=https://github.com/liuggio/Symfony2-StreamResponse.git
    target=n3b/src/n3b/Bundle/Util/HttpFoundation/StreamResponse
 
[phpExcel]
    git=https://github.com/liuggio/PHPExcel.git
    target=phpexcel
 
[liuggioExcelBundle]
    git=http://github.com/liuggio/ExcelBundle.git
    target=/bundles/liuggio/ExcelBundle
AppKernel.php
Code : Sélectionner tout - Visualiser dans une fenêtre à part
new liuggio\ExcelBundle\liuggioExcelBundle(),
autoload.php
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
$loader->registerNamespaces(array(
    'Symfony'          => array(__DIR__.'/../vendor/symfony/src', __DIR__.'/../vendor/bundles'),
    'Sensio'           => __DIR__.'/../vendor/bundles',
    'JMS'              => __DIR__.'/../vendor/bundles',
    'Doctrine\\Common' => __DIR__.'/../vendor/doctrine-common/lib',
    'Doctrine\\DBAL'   => __DIR__.'/../vendor/doctrine-dbal/lib',
    'Doctrine'         => __DIR__.'/../vendor/doctrine/lib',
    'Monolog'          => __DIR__.'/../vendor/monolog/src',
    'Assetic'          => __DIR__.'/../vendor/assetic/src',
    'Metadata'         => __DIR__.'/../vendor/metadata/src',
    'n3b'              => __DIR__.'/../vendor/n3b/src',
    'liuggio'          => __DIR__.'/../vendor/bundles',
 
));
$loader->registerPrefixes(array(
    'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
    'Twig_'            => __DIR__.'/../vendor/twig/lib',
    'PHPExcel'         => __DIR__.'/../vendor/phpexcel/lib/PHPExcel/Classes',
));
J'ai toujours cette erreur:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
You have requested a non-existent service "xls.service_xls5".
J'ai loupé un truc dans l'installation ?
Merci