createRule()); $resourceRelationServiceProxy = new ResourceRelationServiceProxy(); $resourceRelationServiceProxy->addService('item', ItemResourceRelationService::SERVICE_ID); $serviceManager = $this->getServiceManager(); $serviceManager->register(ItemResourceRelationService::SERVICE_ID, new ItemResourceRelationService()); $serviceManager->register(ResourceRelationServiceProxy::SERVICE_ID, $resourceRelationServiceProxy); } public function down(Schema $schema): void { AclProxy::revokeRule($this->createRule()); $this->getServiceManager()->unregister(ResourceRelationServiceProxy::SERVICE_ID); } public function createRule(): AccessRule { return new AccessRule( AccessRule::GRANT, TaoRoles::BASE_USER, [ 'ext' => 'tao', 'mod' => 'ResourceRelations' ] ); } }