Posts Tagged ‘ symfony ’

Behat, login and fixtures

January 30, 2014
By

I want to use behat for some of the  testing of a new project and I  found a thing that’s not so easy to implement: actual login without a registration form The project right now doesn’t have a proper registration form, so I cannot use the registration process, also I don’t want to be...

Read more »

Code coverage and libraries

January 15, 2014
By

Phpstorm defaults to computing code coverage reports for unit tests, bbut this can become an issue if you use big third party libraries. The solution is simple and is to blacklist library files in phpunit configuration You need to pay attention to a detail though: whitelist block (if present) overrides the blacklist one in...

Read more »

Symfony, commands and SwiftMailer

June 6, 2013
By

Symfony is a nice piece of software, but let’s admit it: it still has some rough edges The one I stumbled in today involves the sending of e-mails using SwiftMailer from within a Symfony Command Even if everything was correctly configured, the generated emails were not actually sent The problem was soved by configuring...

Read more »

Errori random di Symfony2

December 2, 2011
By

Oggi ho aggiornato i vendors ed è apparso un altro di quegli errori random di Symfony2: Catchable Fatal Error: Argument 1 passed to Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter::__construct() must be an instance of Doctrine\Common\Persistence\ManagerRegistry, instance of Symfony\Bundle\DoctrineBundle\Registry given, called in .../app/cache/dev/appDevDebugProjectContainer.php on line 1336 and defined in ..../vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Request/ParamConverter/DoctrineParamConverter.php line 31 500 Internal Server Error - ErrorException Ho provato...

Read more »

PHP Day: aftermath

May 19, 2009
By

Il PhpDay è stato un evento molto ben fatto. pur senza sfarzo è riuscito ad essere utile e in alcuni talk perfino illuminante. In particolare mi riferisco alla presenza di Rasmus Lerdorf, l’inventore di PHP, presenza a mio avviso poco pubblicizzata. Una delle domande alle quali cercavo risposta è rimasta insoluta: è vantaggioso usare...

Read more »