ExtDirect implementation for Symfony2