redpanda/ActivityStreamBundle — pull request #3 by richardfullmer (2011-10-17 04:10:21+00:00)
Title: Resolvers

Currently, it is assumed that every actor, target or actionObject tracked by the ActivityStreamBundle is resolvable as by Doctrine as an entity.

I have a use case where I want to be able to track entities which are NOT managed by the EntityManager. This commit abstracts the resolving of actor, targets and actionObjects into a StreamableResolverInterface. I've added a DoctrineEntityResolver which by default is loaded by the bundle. It makes sure that it has metadata for the managed class, then attempts to load it. Additionally, I added the ability for it to load objects that doctrine stored as proxy classes.

Also, new resolvers may be added to the DIC by tagging them with activity_stream.resolver. They will be added to the resolver chain at DIC compile time, and allow bundles to register their own resolvers.