Monolog logs the WARN after ERR

I have “the luck” to work on an old Symfony2.0 application and today I had the following *@#&$*@ problem. Monolog logs the WARN level messages if I log before an ERR level message. [php] $logger = $this->get(‘logger’); //$logger->err(‘RAZV err’); $logger->warn(‘RAZV 1 warn’); $logger->warn(‘RAZV 2 warn’); die; [/php] In the logs: [bash]tail -f log/*[/bash] Nothing. Same… Continue reading Monolog logs the WARN after ERR

Load bundle without composer.json in Symfony2.3

This is how I loaded a legacy budle without composer.json in a custom location for my Symfony2.3 project with composer. In one of my Symfony2.3 projects I needed to use an old external bundle. This legacy bundle (from Symfony2.0) hasn’t a composer.json file and in my case I can not add one. Anyway, I wanted… Continue reading Load bundle without composer.json in Symfony2.3

How to use AWS SDK for PHP 2 and Symfony Console

Few days ago I wanted to write a small PHP script to backup (upload) some files in Amazon S3. And because Amazon just released last month a new version of their SDK, AWS SDK for PHP 2 I decided to use this one. I also choose to use Console component from Symfony2 and Composer to… Continue reading How to use AWS SDK for PHP 2 and Symfony Console