Skip to content

Commit

Permalink
feat: user composer bin plugin to use php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Jan 11, 2024
1 parent 8396b54 commit 8bc8fec
Show file tree
Hide file tree
Showing 6 changed files with 1,934 additions and 313 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
###> bamarni/composer-bin-plugin ###
/vendor-bin/**/vendor/
###< bamarni/composer-bin-plugin ###

###> symfony/framework-bundle ###
/.env.local
/.env.local.php
Expand Down
15 changes: 11 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
"twig/twig": "^3.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.41",
"bamarni/composer-bin-plugin": "^1.8",
"phpstan/extension-installer": "^1.3",
"phpstan/phpstan-symfony": "^1.3",
"phpunit/phpunit": "^10.0",
"roave/security-advisories": "dev-latest",
"symfony/browser-kit": "~7.0.0",
"phpunit/phpunit": "^10.0",
"symfony/css-selector": "~7.0.0",
"symfony/requirements-checker": "^2.0",
"symfony/stopwatch": "~7.0.0",
Expand Down Expand Up @@ -82,19 +82,26 @@
"php-http/discovery": true,
"phpstan/extension-installer": true,
"symfony/flex": true,
"symfony/runtime": true
"symfony/runtime": true,
"bamarni/composer-bin-plugin": true
},
"sort-packages": true
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "7.0.*"
},
"bamarni-bin": {
"bin-links": true,
"target-directory": "vendor-bin",
"forward-command": true
}
},
"scripts": {
"post-install-cmd": [
"@auto-scripts"
"@auto-scripts",
"@composer bin php-cs-fixer install --ansi"
],
"post-update-cmd": [
"@auto-scripts"
Expand Down
Loading

0 comments on commit 8bc8fec

Please sign in to comment.