changed symfony http foundation to optional dependence