How to Create A Custom Param Converter In Symfony2?

How to Create A Custom Param Converter In Symfony2?

Writing custom ParamConverter in Symfony2

PHP-framework Symfony2 has a very nice component ParamConverter, which allows to convert parameters from URL into PHP variables. When the functionality that comes out of box isn’t enough, you should extend it manually. In this post I’ll show how to write your custom Symfony2 ParamConverter.

Code Refactoring In PhpStorm

Code Refactoring In PhpStorm

Code refactoring in PhpStorm

PHP refactoring is really cool! But in the process of fulfilling it, some routine operations and repetitive actions with the code are rather frequent. And in the end there still may remain a lot of syntax errors. Well it often kills any initiative. And surely this is not cool.