Fix wrong method in findTaggedServiceIds(), add example to docblock.
merged branch beberlei/TaggedServices (PR #7909)

This PR was submitted for the master branch but it was merged into the 2.1 branch instead (closes #7909).

Discussion
----------

[DependencyInjection] Fix method use + example in doc block

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

Fixes using a wrong method in ``findTaggedServiceIds`` and adds an example for the usage and showing the returned data structure as ``@return array`` is not very helpful, the datastructure being a bit unintuitive.

Commits
-------

ad2c955 [DependencyInjection] Fix wrong method in findTaggedServiceIds(), add example to docblock.
if the repository method returns an array ensure that it's internal poin...
merged branch xabbuh/issue6651 (PR #7906)

This PR was squashed before being merged into the 2.1 branch (closes #7906).

Discussion
----------

if the repository method returns an array ensure that it's internal poin...

...ter is resetted

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

Commits
-------

0610750 if the repository method returns an array ensure that it's internal poin...
[Templating] Allows "template" as parameter name

And add a test for "__template__" and "parameters" which are forbidden
to avoid any conflict.
[Templating] Rename $parameters to a less common name
[Templating] $view is a reserved parameter name
[Templating] Keep $parameters and $template for backward compatibility

The passed parameters variable rather than the internal Symfony variable.
[Templating] User class variables to avoid any name collision