fixed usage of SonataMediaBundle with sevice container injection