First modifications on the symfony code to adapt it for laravel