Add vendor to Symfony project

Checking out a versioned Symfony Application When using Composer to manage application’s dependencies, it’s recommended to ignore the entire vendor/ directory before committing its code to the repository. This means that when checking out a Symfony application from a Git repository, there will be no vendor/ directory and the application won’t work out-of-the-box. In order
Continue reading Add vendor to Symfony project

Symfony: doctrine debug

Lazy load proxies always contain an instance of Doctrine’s EntityManager and all its dependencies. Therefore a var_dump() will possibly dump a very large recursive structure which is impossible to render and read. You have to use Doctrine\Common\Util\Debug::dump() to restrict the dumping to a human readable level. Additionally you should be aware that dumping the EntityManager
Continue reading Symfony: doctrine debug

Doctrine: StofDoctrineExtensionsBundle

The StofDoctrineExtensionsBundle bundle provides integration for DoctrineExtensions in your Symfony2 Project. The StofDoctrineExtensionBundle is actually just a wrapper around another library called DoctrineExtensions. For the installation of the StofDoctrineExtensionsBundle go here. DoctrineExtensions contains extensions for Doctrine2 that hook into the facilities of Doctrine and offer new functionality or tools to use Doctrine2 more efficiently. Timestampable
Continue reading Doctrine: StofDoctrineExtensionsBundle

Symfony: performance

Symfony is fast, right out of the box. Of course, if you really need speed, there are many ways that you can make Symfony even faster. Use Composer’s Class Map Functionality By default, the Symfony Standard Edition uses Composer’s autoloader in the autoload.php file. This is quite slow though as the loader iterates over all
Continue reading Symfony: performance