Chaning dependency to symfony