changed script for Symfony script