New in Symfony 2.3: Small things matter
Warning: This post is about an unsupported Symfony version. Some of this information may be out of date. Read the most recent Symfony Docs.
Every new Symfony release tries to brings some small but useful improvements. Let's dive into some of them for Symfony 2.3 (in no particular order).
When a customer stumbles upon an exception when testing your shiny new Symfony application, you might want to get the stack trace to investigate the issue further. You can use the web profiler, but you can now also ask him to copy and paste the stack trace from the web page as there is now a plain text version of it thanks to the work of Igor Wiedler in #6613.
Since 2.2, you can use the PHP built-in webserver on your development machine
(but it was limited to the development environment). But what if you want to
test your production error pages? Thanks to Dariusz Górecki
did in #7507, you can now
run the built-in server in any environment (
php app/console --env=prod
When using a form to login your users, you might want to start the session as
late as possible. Adrien Brault
added a configuration setting (
require_previous_session) to better control
if a session must exist before submitting an authentication request (see
#4776 and the setting in the
In #6550, Eric GELOEN
made debugging configuration parameters a lot easier; use
container:debug --parameters to list all parameters and
container:debug --parameter=kernel.debug to display the value of a specific
parameter. This can also be useful if you need a parameter value in a bash
$CACHE_DIR="`php app/console container:debug
Internally, Symfony converts short controller names (
to a controller/action pair that PHP understands. In #7843, Bart van den Burg,
added a way to do the reverse: transform a
controller::action string to
its short name notation
The Sensio Generator Bundle speeds up bootstrapping Doctrine entities, CRUD controllers, Form types, and more. But what if you want to customize the generated code? Thanks to the work of NinjDS, Luis Muñoz Hernández, and Fabien Potencier, you can now override each generated block quite easily. Reading the documentation should get you started in no time.
Romain Neutron has been very busy with the Process component and he contributed several enhancements: signals support and pid support in #5476, and proper timeout support in #7583. Ever wanted to run commands that need a TTY to run properly? Máximo Cuadros got you covered in #7566.
Sometimes, you need to mix a Symfony application with another PHP application within a single project. Sharing sessions is a nightmare, but Karma Dordrak, in #7571, added a way to manage a session started outside of Symfony (he even wrote a whole chapter in the documentation about it).
This is Friday... Lucky you, Symfony 2.3.0 RC1 has just been released and the week-end is just around the corner. So, what about testing some of these new features?
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.