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.
1616
1717### Step 1: Composer
1818
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 :
2020
2121``` json
2222{
2323 "require-dev" : {
24- "bruli/php-git-hooks" : " ^2 .0"
24+ "bruli/php-git-hooks" : " ~3 .0"
2525 }
2626}
2727```
28+ You can use "~ 2.0" for Symfony version 2.X.
29+
2830Or you can write in your console:
2931
3032``` bash
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ pre-commit:
1818 standard: PSR2
1919 phpmd: true
2020 composer: true
21+ message:
22+ right-message: 'HEY, GOOD JOB!!'
23+ error-message: 'FIX YOUR FUCKING CODE!!'
2124commit-msg:
2225 enabled: true
2326 regular-expression: '#[0-9]{2,7}'
You can’t perform that action at this time.
0 commit comments