File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed
Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ class Curiosity26AclHelperExtension extends Extension
2222 */
2323 public function load (array $ configs , ContainerBuilder $ container )
2424 {
25- $ loader = new YamlFileLoader ($ container , new FileLocator ([' ../Resources/config/ ' ]));
25+ $ loader = new YamlFileLoader ($ container , new FileLocator ([__DIR__ . ' / ../Resources/config/ ' ]));
2626 $ loader ->load ('services.yaml ' );
2727 }
2828
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ public function getClassAces(): array
352352 *
353353 * @return array|Entry[]
354354 */
355- public function getClassFieldAces (\ string $ field ): array
355+ public function getClassFieldAces (string $ field ): array
356356 {
357357 if (null === $ this ->acl ) {
358358 throw new \RuntimeException ("Find or create an ACL using aclFor() first. " );
@@ -378,7 +378,7 @@ public function getObjectAces(): array
378378 *
379379 * @return array|Entry[]
380380 */
381- public function getObjectFieldAces (\ string $ field ): array
381+ public function getObjectFieldAces (string $ field ): array
382382 {
383383 if (null === $ this ->acl ) {
384384 throw new \RuntimeException ("Find or create an ACL using aclFor() first. " );
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class AclHelperQueryBuilder
3535 */
3636 private $ registry ;
3737
38- public function __construct (RegistryInterface $ registry , RoleHierarchyInterface $ roleHierarchy = null )
38+ public function __construct (RegistryInterface $ registry , ? RoleHierarchyInterface $ roleHierarchy = null )
3939 {
4040 $ this ->registry = $ registry ;
4141 $ this ->roleHierarchy = $ roleHierarchy ;
Original file line number Diff line number Diff line change 11services :
22 Curiosity26\AclHelperBundle\QueryBuilder\AclHelperQueryBuilder :
33 $registry : ' @Symfony\Bridge\Doctrine\RegistryInterface'
4- $roleHierarchy : ' @Symfony\Component\Security\Core\Role\RoleHierarchyInterface '
4+ $roleHierarchy : ' @?security.role_hierarchy '
55 Curiosity26\AclHelperBundle\Helper\AclHelper :
66 arguments :
77 $registry : ' @Symfony\Bridge\Doctrine\RegistryInterface'
You can’t perform that action at this time.
0 commit comments