File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ Library based in git hook scripts for PHP projects.
16
16
17
17
### Step 1: Composer
18
18
19
- You must add the following line to the ` composer.json ` file:
19
+ You must add the following line to the ` composer.json ` file to use with Symfony 3.0 :
20
20
21
21
``` json
22
22
{
23
23
"require-dev" : {
24
- "bruli/php-git-hooks" : " ^2 .0"
24
+ "bruli/php-git-hooks" : " ~3 .0"
25
25
}
26
26
}
27
27
```
28
+ You can use "~ 2.0" for Symfony version 2.X.
29
+
28
30
Or you can write in your console:
29
31
30
32
``` bash
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ pre-commit:
18
18
standard: PSR2
19
19
phpmd: true
20
20
composer: true
21
+ message:
22
+ right-message: 'HEY, GOOD JOB!!'
23
+ error-message: 'FIX YOUR FUCKING CODE!!'
21
24
commit-msg:
22
25
enabled: true
23
26
regular-expression: '#[0-9]{2,7}'
You can’t perform that action at this time.
0 commit comments