Adapt to symfony
Use sample