set symfony environment prior calling composer install

issue #411