In order to have annotations fully working as desired, we may create
proxy classes with meta information. Different bundles can create
proxy functionality for the same class. For example:

/**
 * @Secure(roles="ROLE_ONE_ONE")
 * @Cacheable("my-number/{one}/{currentUserId}",
keyGenerator={"jms.securityextra.cache_keygen"})
 * @Other
 */
public function one($one) {}
@Secure is taken from JMSSecurityExtraBundle, @Cacheable is taken from
some Java EhCache port, @other is taken from some other bundle.
The purpose of method is to return all data belonging to currently
logged in user and cached in memcache or redis for performance.
But how to achieve it properly and extensibly? I suggest porting or
taking existing Zend\CodeGen component for this purpose. There must be
a way for one bundles to know, whether any other bundle created proxy
for needed class already. Introducing some kind of Symfony\Component
\DependencyInjection#getProxyInstance() could help. But how should
several bundles create proxies for the same method?

Regards,
Serge Smertin

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to