Fixed the compiled version of the is_granted expression function
bug #316 Fixed the compiled version of the is_granted expression function (stof)

This PR was merged into the 3.0.x-dev branch.

Discussion
----------

Fixed the compiled version of the is_granted expression function

In the compiled closure, the ``$attributes`` and ``$object`` arguments are the source code to build the argument. The current code ignores them entirely, and always evaluate the permissions on the ``$attributes`` and ``$object`` variables (which may not exist, at least for ``$attributes``).

This does not impact the bundle because it never compiles the expressions but always runs them in evaluation mode (needed as knowing the request attributes keys would be hard to compile the expression earlier). But it is important for one of the reference bundles to implement the compilation closure properly (the Symfony doc got it wrong until recently, probably because the first places using it were wrong)

Commits
-------

0777a20 Fixed the compiled version of the is_granted expression function