KnpLabs/KnpRadBundle — pull request #120 by docteurklein (2013-09-06 16:01:52+00:00)
Title: WIP refactor resource resolver to resolve resource only if present as an action argument

associated routing:

``` yaml

App:Test:
defaults:
_resources:
blogPosts: {service: app.entity.blog_post_repository, method: findAll}
blogPost: {service: app.entity.blog_post_repository, method: find, arguments: [name: id]}
session: {service: service_container, method: get, arguments: [value: session]}

```

and controller:

``` php

class TestController
{
public function indexAction()
{
(var_dump(func_get_args()));
}

public function showAction(array $blogPosts, $blogPost, $session)
{
(var_dump(func_get_args()));
}
}

```