Updated: 25 January 2025
Symfony releases, notifications and release checker
Add a pack for Apache support in Symfony
composer require symfony/apache-pack
Freelance software engineer United Kingdom
Updated: 25 January 2025
Symfony releases, notifications and release checker
Add a pack for Apache support in Symfony
composer require symfony/apache-pack
Updated: 10 December 2024
See https://symfony.com/doc/current/testing.html
KernelTestCase
.WebTestCase
.The output of make:test
supplies a useful summary
root@5b8333e33939:/var/www/html# bin/console make:test
Which test type would you like?:
[TestCase ] basic PHPUnit tests
[KernelTestCase ] basic tests that have access to Symfony services
[WebTestCase ] to run browser-like scenarios, but that do not execute JavaScript code
[ApiTestCase ] to run API-oriented scenarios
[PantherTestCase] to run e2e scenarios, using a real-browser or HTTP client and a real web server
Updated: 23 November 2024
Generate a migration by comparing your current database to your mapping information
bin/console doctrine:migrations:diff
Create a new migration based on database changes
bin/console make:migration
List all configured routes in application
bin/console debug:router
Display environment variables used in the container
bin/console debug:container --env-vars
Dump the default configuration for security
bin/console config:dump-reference security
Updated: 04 April 2024
Prepare for a new run
rm -r src/Entity/*
rm -r src/Form/*
rm -r src/Controller/*
rm -r src/Repository/*
rm -r templates/*
Copy in a backup of base twig template
cp base.html.twig templates/
Generate entities from an existing database
bin/console doctrine:mapping:import "App\Entity" annotation --path=src/Entity
bin/console make:entity --regenerate App
Make CRUD for each new entity
bin/console make:crud MyEntity
bin/console make:crud AnotherEntity
...
Adjust file permissions
sudo chown -R chris:chris templates/
sudo chown -R chris:chris src/Entity/
sudo chown -R chris:chris src/Controller/
sudo chown -R chris:chris src/Form/
Now, sql insert data fixtures
...