symfony/symfony — pull request #10258 by ehough (2014-02-13 22:26:15+00:00)
Title: [DependencyInjection] remove missing-service suggestions

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |

This is a rollback of 729db0fde: a change which introduced a significant performance penalty for little gain. During normal use of ContainerBuilder, `levenshtein()` is called many times each time a service is requested for the first time. In a container with just 20 services, for example, this will result in 400 calls to `levenshtein()`. That's a significant performance hit which only serves to provide some convenience for the comparatively rare situation when a developer asks for a truly non-existent service.

Simple code to demo:

```php
set('my_service', $service);

/** ... then fetch it */
$fetchedService = $builder->get('my_service');
```