symfony/symfony — pull request #4925 by stof (2012-07-14 15:47:28+00:00)
Title: [Security] Implemented the Serializable interface in the Role class

The Role class is serialized in the session for each role of the user. Implementing the Serializable interface allows to reduce the size of the data.