Skip to content

Use state pattern queries in controllers #83

Description

@ChrisBAshton

Example is in MediationController->roundTableCommunication.

This should do dispute->state->canEnableRoundTableCommunication($account). Delegate the business logic to the state pattern, don't encode it in the controller. This principle needs to be applied elsewhere too.

(At the moment, it manually checks if the logged in account is a mediator. Controller shouldn't need to care).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions