Category: Symfony

modify following file -> /web/app.php
Add following arguments
use Symfony\Component\Debug\Debug;
Debug::enable(E_ERROR);
$kernel = new AppKernel($environment, true);
http://symfony.app/_profiler
Use symfony profiler great help for upgrade
Update to the New Major Version via Composer¶
Once your code is deprecation free, you can update the Symfony library via Composer by modifying your composer.json
file:
1 2 3 4 5 6 7 8 |
{
"...": "...",
"require": {
"symfony/symfony": "^4.1",
},
"...": "..."
}
|
Next, use Composer to download new versions of the libraries:
composer update symfony/symfony
|
Dependency Errors¶
If you get a dependency error, it may simply mean that you need to upgrade other Symfony dependencies too. In that case, try the following command:
composer update "symfony/*" --with-all-dependencies
|
This updates symfony/symfony
and all packages that it depends on, which will include several other packages. By using tight version constraints in composer.json
, you can control what versions each library upgrades to.
Symfony Helpers

Clear Cache
php bin/console cache:clear –no-warmup

ab – Apache HTTP server benchmarking tool
ab
is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving.
See following website : https://httpd.apache.org/docs/2.4/programs/ab.html
ab -n500 -c20 -H
List Symfony Routes
php bin/console debug:router
Command to find out Symfony version
composer show
symfony/symfony v3.3.2 The Symfony PHP framework