mnapoli/PHP-DI — pull request #162 by mnapoli (2014-05-19 21:42:54+00:00)
Title: WIP Calling functions and resolving their parameters using the container

```php
$container->call(function (Logger $logger, EntityManager $em) {
// do stuff
});
```

```php
interface InvokerInterface
{
public function call($callable, array $parameters = array());
}
```

À la AngularJS?

```php
$container->call('logger', 'doctrine.entity_manager', function (Logger $logger, EntityManager $em) {
// do stuff
});
```