-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5892348
commit 75a7c2e
Showing
51 changed files
with
1,046 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?php | ||
|
||
$finder = (new PhpCsFixer\Finder()) | ||
->in(__DIR__) | ||
->exclude(['var', 'vendor']); | ||
|
||
return (new PhpCsFixer\Config()) | ||
->setRules([ | ||
'@Symfony' => true, | ||
'php_unit_method_casing' => ['case' => 'snake_case'], | ||
]) | ||
->setFinder($finder); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,66 @@ | ||
################## | ||
# Variables | ||
################## | ||
|
||
DOCKER_COMPOSE = docker-compose -f ./docker/docker-compose.yml | ||
DOCKER_COMPOSE_PHP_FPM_EXEC = ${DOCKER_COMPOSE} exec -u www-data php-fpm | ||
|
||
################## | ||
# Docker compose | ||
################## | ||
|
||
dc_build: | ||
docker-compose -f ./docker/docker-compose.yml build | ||
${DOCKER_COMPOSE} build | ||
|
||
dc_start: | ||
docker-compose -f ./docker/docker-compose.yml start | ||
${DOCKER_COMPOSE} start | ||
|
||
dc_stop: | ||
docker-compose -f ./docker/docker-compose.yml stop | ||
${DOCKER_COMPOSE} stop | ||
|
||
dc_up: | ||
docker-compose -f ./docker/docker-compose.yml up -d --remove-orphans | ||
${DOCKER_COMPOSE} up -d --remove-orphans | ||
|
||
dc_ps: | ||
docker-compose -f ./docker/docker-compose.yml ps | ||
${DOCKER_COMPOSE} ps | ||
|
||
dc_logs: | ||
docker-compose -f ./docker/docker-compose.yml logs -f | ||
${DOCKER_COMPOSE} logs -f | ||
|
||
dc_down: | ||
docker-compose -f ./docker/docker-compose.yml down -v --rmi=all --remove-orphans | ||
${DOCKER_COMPOSE} down -v --rmi=all --remove-orphans | ||
|
||
|
||
################## | ||
# App | ||
################## | ||
|
||
app_bash: | ||
docker-compose -f ./docker/docker-compose.yml exec -u www-data php-fpm bash | ||
${DOCKER_COMPOSE} exec -u www-data php-fpm bash | ||
|
||
|
||
################## | ||
# Database | ||
################## | ||
|
||
db_migrate: | ||
docker-compose -f ./docker/docker-compose.yml exec -u www-data php-fpm bin/console doctrine:migrations:migrate --no-interaction | ||
${DOCKER_COMPOSE} exec -u www-data php-fpm bin/console doctrine:migrations:migrate --no-interaction | ||
db_diff: | ||
docker-compose -f ./docker/docker-compose.yml exec -u www-data php-fpm bin/console doctrine:migrations:diff --no-interaction | ||
${DOCKER_COMPOSE} exec -u www-data php-fpm bin/console doctrine:migrations:diff --no-interaction | ||
|
||
################## | ||
# Static code analysis | ||
################## | ||
|
||
phpstan: | ||
${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/phpstan analyse src tests -c phpstan.neon | ||
|
||
deptrac: | ||
${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/deptrac analyze deptrac-layers.yaml | ||
${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/deptrac analyze deptrac-modules.yaml | ||
|
||
cs_fix: | ||
${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/php-cs-fixer fix | ||
|
||
cs_fix_diff: | ||
${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/php-cs-fixer fix --dry-run --diff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.