Skip to content

Commit

Permalink
feat: use wouterj/eloquent-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
COil committed Sep 26, 2024
1 parent 38c906f commit 151b763
Show file tree
Hide file tree
Showing 20 changed files with 2,086 additions and 288 deletions.
9 changes: 9 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,12 @@ APP_SECRET=3bUhVCRkHJfT2ZJTqBnvkclRFT1zy1ig
# To test the production environment, run "make go-prod" or "castor symfony:go-prod"

# To come back to the development environment, run "make go-dev" or "castor symfony:go-dev"

###> wouterj/eloquent-bundle ###
DB_CONNECTION=sqlite
#DB_HOST=127.0.0.1
#DB_PORT=3306
DB_DATABASE=data/db.sqlite
#DB_USERNAME=root
#DB_PASSWORD=
###< wouterj/eloquent-bundle ###
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test: ## Run all PHPUnit tests
coverage: ## Generate the HTML PHPUnit code coverage report (stored in var/coverage)
coverage: purge
@XDEBUG_MODE=coverage php -d xdebug.enable=1 -d memory_limit=-1 vendor/bin/phpunit --coverage-html=var/coverage --coverage-clover=var/coverage/clover.xml
@php bin/coverage-checker.php var/coverage/clover.xml 100
@php bin/coverage-checker.php var/coverage/clover.xml 80

cov-report: var/coverage/index.html ## Open the PHPUnit code coverage report (var/coverage/index.html)
@open var/coverage/index.html
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ In both cases, your controller code has to be [modified accordingly](https://sym

## References 📚

* [WouterJ/WouterJEloquentBundle](https://github.com/WouterJ/WouterJEloquentBundle) (github.com)
* [A better ADR pattern for your Symfony controllers](https://www.strangebuzz.com/en/blog/a-better-adr-pattern-for-your-symfony-controllers) (strangebuzz.com) (coming soon)
* [A Good Naming Convention for Routes, Controllers and Templates?](https://jolicode.com/blog/a-good-naming-convention-for-routes-controllers-and-templates) (jolicode.com)
* [Front-end application development, Symfony-style(s)](https://dunglas.dev/2024/04/front-end-application-development-symfony-styles/) (dunglas.dev)
Expand Down
2 changes: 1 addition & 1 deletion castor.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function coverage(): int
return $ec;
}

return success(exit_code('php bin/coverage-checker.php var/coverage/clover.xml 100', quiet: false));
return success(exit_code('php bin/coverage-checker.php var/coverage/clover.xml 80', quiet: false));
}

#[AsTask(namespace: 'test', description: 'Open the PHPUnit code coverage report (var/coverage/index.html)', aliases: ['cov-report'])]
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"symfony/yaml": "~7.1.0",
"twig/extra-bundle": "^3.0",
"twig/markdown-extra": "^3.7",
"twig/twig": "^3.0"
"twig/twig": "^3.0",
"wouterj/eloquent-bundle": "^2.7"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.8",
Expand Down
Loading

0 comments on commit 151b763

Please sign in to comment.