diff --git a/service_container/definitions.rst b/service_container/definitions.rst index 29db23cd090..b47ea9e143e 100644 --- a/service_container/definitions.rst +++ b/service_container/definitions.rst @@ -38,9 +38,6 @@ There are some helpful methods for working with the service definitions:: // shortcut for the previous method $container->register('app.number_generator', \AppBundle\NumberGenerator::class); - // or create a service whose id matches its class - $container->register(\AppBundle\NumberGenerator::class); - Working with a Definition -------------------------