0
有没有什么办法可以使用Silex实现ACL,但是没有Doctrine ORM?没有ORM的Silex symfony ACL
使用实体,我们可以处理这个问题是这样
$oidd = new Symfony\Component\Security\Acl\Domain\ObjectIdentity::fromDomainObject($message(\);
$acl = $app['security.acl.provider']->createAcl($oidd);
// the current user is the owner
$sid = Symfony\Component\Security\Acl\Domain\UserSecurityIdentity::fromAccount($currentUser);
$acl->insertObjectAce($sid, Symfony\Component\Security\Acl\Permission\MaskBuilder::MASK_OWNER);
任何解决方案?
链接的项目使用Doctrine ORM。 –