The voter should not live in the Entity namespace. Use the ``Acme\DemoBundle\Security\Authorization\Voter`` namespace instead.