forked from https://github.com/symfony/symfony
bb5075d820
This change allows for more flexibility if the developer wants to flush the Response content early (the drawback being that Response listeners won't be able to tweak the HTTP headers anymore). There is another benefit: avoid the infamous "Fatal error: Exception thrown without a stack frame in Unknown on line 0". Here is a small scenario when this can happen (thanks dtee for identifying this issue): * Call flush() in controller to output html early, then throw exception * ExceptionHandler triggers handle() function and return new Response object to output... * Because the header is sent (flush() call in Controller), php's E_WARNING error get raised, which gets handled by ErrorHandler->handle() and it throws new ErrorException() * PHP fatals to prevent Exception loop: "Fatal error: Exception thrown without a stack frame in Unknown on line 0" |
||
---|---|---|
src/Symfony | ||
tests | ||
.gitignore | ||
autoload.php.dist | ||
check_cs | ||
LICENSE | ||
phpunit.xml.dist | ||
README.md | ||
UPDATE.ja.md | ||
UPDATE.md | ||
vendors.php |
README
What is Symfony2?
Symfony2 is a PHP 5.3 full-stack web framework. It is written with speed and flexibility in mind. It allows developers to build better and easy to maintain websites with PHP.
Symfony can be used to develop all kind of websites, from your personal blog to high traffic ones like Dailymotion or Yahoo! Answers.
Requirements
Symfony2 is only supported on PHP 5.3.2 and up.
Installation
The best way to install Symfony2 is to download the Symfony Standard Edition available at http://symfony.com/download.
Documentation
The "Quick Tour" tutorial gives you a first feeling of the framework. If, like us, you think that Symfony2 can help speed up your development and take the quality of your work to the next level, read the official Symfony2 documentation.