symfony/symfony — comment on commit b46114a0f67da3338aa6728f33d20fb11c4da59c
File: src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php line 35
By stof:

this is wrong. the default before of the ``get`` method is to throw an exception for invalid services, not to return null. You should either use the ``has`` method, either use the second argument: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/DependencyInjection/Container.php#L220