ezsystems/ezpublish — pull request #429 by dpobel (2012-09-11 14:22:28+00:00)
Title: Implemented a way to retrieve the Symfony Dependency Injection container from Legacy Kernel

I know, yet another singleton, perhaps, it's perhaps the last one ever in eZ ;-)
The corresponding code on Symfony/eZ5 side is visible here: https://github.com/ezsystems/ezp-next/compare/inject_symfony_dic

Basically, this patch allows to do something like the following example in a custom eZ Publish 4 view, content edit handler, ... :
```php
$kernel = ezpKernel::instance();
if ( $kernel->hasSymfonyDIContainer() )
{
$repository = $kernel->getSymfonyDIContainer()->get( 'ezpublish.api.repository' );
// yeah I can use the Public API
}
```