This repository was archived by the owner on Jan 17, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ interface UserProvider
4141}
4242` ` `
4343
44- The class you pass in the config must implement this interface.
44+ The class you pass in the config must implement this interface. It can have dependencies like a Service, they will be
45+ injected during instantiation.
4546
4647`User` is an interface also provided by this Brick :
4748
@@ -97,7 +98,8 @@ interface UserAccessChecker
9798` ` `
9899
99100This method returns `true` if user is authorized to see resource. It can throw an exception the same way as defined
100- in [`Archict\router`](https://github.com/Archict/router).
101+ in [`Archict\router`](https://github.com/Archict/router). Implementation of this interface can have some dependencies in
102+ its constructor, they will be injected during instantiation.
101103
102104Then you can provide the class name to your rule with the tag `checker` :
103105
Original file line number Diff line number Diff line change 2525 "phpunit/phpunit" : " ^10" ,
2626 "squizlabs/php_codesniffer" : " ^3.9" ,
2727 "slevomat/coding-standard" : " ^8.15" ,
28- "archict/core" : " ^0" ,
28+ "archict/core" : " ^0.3 " ,
2929 "guzzlehttp/psr7" : " ^2.6"
3030 },
3131 "scripts" : {
You can’t perform that action at this time.
0 commit comments