-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix level 6 of phpstan for util directory (#6905)
- Loading branch information
1 parent
6cfa7e5
commit 4c97daf
Showing
10 changed files
with
70 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ | |
use Symfony\Component\Security\Acl\Model\AclInterface; | ||
use Symfony\Component\Security\Acl\Model\MutableAclInterface; | ||
use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface; | ||
use Symfony\Component\Security\Acl\Model\SecurityIdentityInterface; | ||
|
||
/** | ||
* @author Thomas Rabaix <[email protected]> | ||
|
@@ -26,28 +27,32 @@ interface AclSecurityHandlerInterface extends SecurityHandlerInterface | |
/** | ||
* Set the permissions not related to an object instance and also to be available when objects do not exist. | ||
* | ||
* @param string[] $permissions | ||
* | ||
* @return void | ||
*/ | ||
public function setAdminPermissions(array $permissions); | ||
|
||
/** | ||
* Return the permissions not related to an object instance and also to be available when objects do not exist. | ||
* | ||
* @return array | ||
* @return string[] | ||
*/ | ||
public function getAdminPermissions(); | ||
|
||
/** | ||
* Set the permissions related to an object instance. | ||
* | ||
* @param string[] $permissions | ||
* | ||
* @return void | ||
*/ | ||
public function setObjectPermissions(array $permissions); | ||
|
||
/** | ||
* Return the permissions related to an object instance. | ||
* | ||
* @return array | ||
* @return string[] | ||
*/ | ||
public function getObjectPermissions(); | ||
|
||
|
@@ -61,12 +66,12 @@ public function getObjectAcl(ObjectIdentityInterface $objectIdentity); | |
/** | ||
* Find the ACLs for the passed object identities. | ||
* | ||
* @param \Traversable $oids a collection of ObjectIdentityInterface implementations | ||
* @param array $sids an array of SecurityIdentityInterface implementations | ||
* @param \Traversable<ObjectIdentityInterface> $oids | ||
* @param SecurityIdentityInterface[] $sids | ||
* | ||
* @throws \Exception | ||
* | ||
* @return \SplObjectStorage mapping the passed object identities to ACLs | ||
* @return \SplObjectStorage<ObjectIdentityInterface, SecurityIdentityInterface> mapping the passed object identities to ACLs | ||
*/ | ||
public function findObjectAcls(\Traversable $oids, array $sids = []); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,17 @@ | |
|
||
namespace Sonata\AdminBundle\Util; | ||
|
||
use Symfony\Component\Security\Core\User\UserInterface; | ||
|
||
/** | ||
* @author Mathieu Petrini <[email protected]> | ||
*/ | ||
interface AdminAclUserManagerInterface | ||
{ | ||
/** | ||
* Batch configure the ACLs for all objects handled by an Admin. | ||
* | ||
* @return iterable<UserInterface|string> | ||
*/ | ||
public function findUsers(): iterable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.