schmittjoh/JMSDiExtraBundle — Issue #12: @Inject on protected property produces error
Author: nfx
Created: 2011-10-30 18:44:21+00:00
State: open

When having the code like this

/**
* @Service("xxx", scope="request")
*/
class XxxServie
{
/**
* @Inject
* @var \Symfony\Component\HttpFoundation\Request
*/
public $request;

It produces the

Fatal error: Cannot access protected property ZZZ\YYY\XXX::$request in .../appDevDebugProjectContainer.php on line ...

Maybe using ReflectionProperty::setAccessible within container should help? or fix the proxy class generator? any ideas?