ilubenets / diarchitectbundle
Symfony2 bundle for create Dependency Injection charts
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4.0
This package is not auto-updated.
Last update: 2021-02-15 14:07:40 UTC
README
Symfony2 bundle for create Dependency Injection charts
Installation
Install graphviz on your system
Step 0: Install graphviz on your system
Ubuntu
sudo apt-get install graphviz
Step 1: Download DIArchitectBundle using composer
Add DIArchitectBundle by running the command:
$ php composer.phar require ilubenets/diarchitectbundle "dev-master"
Composer will install the bundle to your project's ilubenets/diarchitectbundle
directory.
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new iLubenets\DIArchitectBundle\iLubenetsDIArchitectBundle(), ); }
Step 3: Configure the DIArchitectBundle
Add the following configuration to your config.yml
file according to which type
of datastore you are using.
# app/config/config.yml i_lubenets_di_architect: path_to_save_graphviz: 'src/doc/DI' service_path_list: ListOfYourBundles1: 'src/List/OfYourBundles1/Resources/config/services.yml' ListOfYourBundles2: 'src/List/OfYourBundles2/Resources/config/services.yml' ...
routing.yml
i_lubenets_di_architect:
resource: "@iLubenetsDIArchitectBundle/Resources/config/routing.yml"
prefix: /
How to use
php app/console di_architect:dump_class_structure --bundle=TestBundle
Then can be accessed by url /architect/di/{bundle}
* php app/console di_architect:graphviz_generate --bundle=TestBundle --img
TODO
- Refactoring duplicate code