All posts
Engineering 1 min read

Symfony 2.5 using a new structure

The symfony 2 framework has been a constant companion for a while now in my work place. I enjoy working with it. Recently a new version came out and I take these moments to look into it what changed between this and the previous one.

In 2.5, when you create the project using composer, it asks you if you want to use the 3.0 structure. I said yes and here are the major changes.

cache and logs are now in the new var folder, together with the bootstrap.php.cache file. That way your configuration just got easier. All you have to ensure is write access to the var folder, nothing else. If you intend to write files locally, the var folder also would now be your choice place to put them.

The console is now in the bin folder. This bin folder has been used by various libraries, for example phpunit if you pull it with composer. Now the console lives in there as well. No more messing up the app/con and then tab hit to be given config instead of console. If you have tools that look for it in app though, they will fail.

I like this new structure and it looks good so far. Will be interesting to see how it proves in daily use.