Skip to content

Commit 7656f8e

Browse files
authored
Merge pull request #8 from jdlabails/feature/readme
readme enhance
2 parents 6caade7 + f4c633a commit 7656f8e

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

README.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,32 @@ And parses their report to give a nice view for rapid analysis of your project.
3939

4040
### Install
4141
- composer require jdlabails/php-project-analyzer-bundle
42-
- php app/console assets:install
43-
- php app/console assetic:dump
42+
- add bundle to kernel
43+
```php
44+
/* app/AppKernel.php */
45+
public function registerBundles()
46+
{
47+
// ...
48+
$bundles[] = new JD\PhpProjectAnalyzerBundle\JDPhpProjectAnalyzerBundle();
49+
// ...
50+
}
51+
```
52+
- add routing
53+
```yaml
54+
# app/config/routing.yml
55+
ppa:
56+
resource: '@JDPhpProjectAnalyzerBundle/Resources/config/routing.yml'
57+
```
58+
59+
4460
- Set your config (see below)
61+
62+
- set assets
63+
```bash
64+
php app/console assets:install
65+
php app/console assetic:dump
66+
```
67+
4568
- sudo php app/console ppa:init
4669

4770
### Use
@@ -51,6 +74,9 @@ And parses their report to give a nice view for rapid analysis of your project.
5174
### Config
5275

5376
```yml
77+
framework:
78+
translator: { fallback: %locale% }
79+
5480
assetic:
5581
bundles:
5682
- JDPhpProjectAnalyzerBundle

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
}],
1212
"require" : {
1313
"php": ">=5.4",
14-
"symfony/symfony": ">=2.3"
14+
"symfony/symfony": ">=2.3",
15+
"symfony/assetic-bundle": "dev-master",
16+
"symfony/translation": "~3.0"
1517
},
1618
"scripts": {
1719
"post-install-cmd": [

0 commit comments

Comments
 (0)