Do you have classes in the Auto-Registration section that use the Entity as constructor argument?
What causes your problem.
, - , .
, 2 :
glob, ,
AppBundle\:
resource: '...'
exclude: '../../{Entity,PathToYourNotService}'
parameters:
container.autowiring.strict_mode: true
, , . sf4
, , , :
namespace AppBundle\Event;
use AppBundle\Entity\Item;
use Symfony\Component\EventDispatcher\Event;
class ItemUpdateEvent extends Event
{
const NAME = 'item.update';
protected $item;
public function __construct(Item $item)
{
$this->item = $item;
}
public function getItem()
{
return $this->item;
}
}
, , . Entity, . 3.4 , .
strict_mode , , , .