Improvement the use of symfony/component