Add conditions to resolveParameters of FrameworkBundle/Router
Remove redundant use statement
update comment of resolveParameters method definition