ChromaticHQ / usher

Custom Robo commands for use on PHP projects.
https://packagist.org/packages/chromatic/usher
11 stars 6 forks source link

Refactor how Usher handles loading required vs optional site configuration #169

Open markdorison opened 11 months ago

markdorison commented 11 months ago

Description

Refactor how Usher handles loading required vs optional site configuration. @apotek suggested we take a look at this after the changes introduced in #168

Issue Owner

Proposed Solution

Create a list of site config keys that are required (in a struct?) and only throw exceptions if a missing key is in that list.

Alternatives Considered

  1. Leave things the way they are.
  2. Use helper methods instead of a struct.