Fixed DoctrineServiceProvider when no logger