implementing parts of "Official Symfony Best Practices"