Changeset 74605 in spip-zone


Ignore:
Timestamp:
Aug 6, 2013, 5:05:24 PM (6 years ago)
Author:
marcimat@…
Message:

Générer la liste des répertoires lors de la compilation de phpDocumentor.

Location:
_galaxie_/code.spip.net/autodoc/trunk
Files:
7 added
2 edited

Legend:

Unmodified
Added
Removed
  • _galaxie_/code.spip.net/autodoc/trunk/src/autodoc/Plugin/Core/ServiceProvider.php

    r74595 r74605  
    1111use autodoc\Plugin\Core\Transformer\Writer;
    1212use autodoc\Plugin\Core\Transformer\Router;
     13use autodoc\Plugin\Core\Compiler\Pass\DirectoryTreeBuilder;
     14
    1315
    1416class ServiceProvider implements \Cilex\ServiceProviderInterface
     
    4345
    4446        // 2 Déclarer/surcharger les routes
     47        $app['transformer.routing.queue']->insert(new Router\ZoraRouter(), 20000);
    4548
    46         $app['transformer.routing.queue']->insert(new Router\ZoraRouter(), 20000);
    47        
     49
     50        // 3 Compiler des informations supplémentaires, tel que l'arborescence des dossiers
     51        $app['compiler']->insert(new DirectoryTreeBuilder(), DirectoryTreeBuilder::COMPILER_PRIORITY);
    4852    }
    4953}
  • _galaxie_/code.spip.net/autodoc/trunk/templates/zora/content/dist.twig

    r74595 r74605  
    2727
    2828<pre>
    29 {{ dump(project.files) }}
     29{{ dump(project.indexes.files2directories) }}
    3030</pre>
Note: See TracChangeset for help on using the changeset viewer.