File tree Expand file tree Collapse file tree 3 files changed +6
-10
lines changed
contexts/CategoryManagement Expand file tree Collapse file tree 3 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 1111use Contexts \CategoryManagement \Domain \Models \Category ;
1212use Contexts \CategoryManagement \Domain \Models \CategoryId ;
1313use Contexts \CategoryManagement \Domain \Models \CategoryStatus ;
14+ use Contexts \CategoryManagement \Domain \Policies \GlobalPermissionPolicy ;
1415use Contexts \CategoryManagement \Domain \Repositories \CategoryRepository ;
1516use Contexts \Shared \Application \BaseCoordinator ;
16- use Illuminate \Contracts \Pagination \LengthAwarePaginator ;
1717use Contexts \Shared \Policies \CompositePolicy ;
18- use Contexts \ CategoryManagement \ Domain \ Policies \ GlobalPermissionPolicy ;
18+ use Illuminate \ Contracts \ Pagination \ LengthAwarePaginator ;
1919
2020class CategoryManagementCoordinator extends BaseCoordinator
2121{
2222 public function __construct (
2323 private CategoryRepository $ repository
24- ) {
25- }
24+ ) {}
2625
2726 public function create (CreateCategoryDTO $ data ): Category
2827 {
Original file line number Diff line number Diff line change 1010
1111class GlobalPermissionPolicy implements BaseAuthorizationPolicy
1212{
13- public function __construct (private string $ action )
14- {
15- }
13+ public function __construct (private string $ action ) {}
1614
1715 public static function canPerform (string $ action )
1816 {
Original file line number Diff line number Diff line change 44
55namespace Contexts \CategoryManagement \Infrastructure \Adapters ;
66
7- use Contexts \CategoryManagement \Domain \Gateway \AuthorizationGateway ;
87use Contexts \Authorization \Contracts \V1 \Services \GlobalPermissionService ;
8+ use Contexts \CategoryManagement \Domain \Gateway \AuthorizationGateway ;
99
1010class AuthorizationAdapter implements AuthorizationGateway
1111{
1212 public function __construct (
1313 private GlobalPermissionService $ globalPermissionService ,
14- ) {
15- }
14+ ) {}
1615
1716 public function canPerformAction (string $ action ): bool
1817 {
You can’t perform that action at this time.
0 commit comments