Skip to content

Add fluent configuration pipeline API#1

Open
stevebauman wants to merge 1 commit into
masterfrom
configuration-pipeline-api
Open

Add fluent configuration pipeline API#1
stevebauman wants to merge 1 commit into
masterfrom
configuration-pipeline-api

Conversation

@stevebauman

Copy link
Copy Markdown
Member

Adds a Laravel-style fluent API for parser/refiner configuration without changing the public Chrono with/without methods.

Changes:

  • Adds Configuration::make(), parsers(), refiners(), hasParser(), hasRefiner()
  • Adds add/prepend/remove methods for parsers and refiners
  • Updates ConfiguredChronoEngine to delegate configuration mutations through Configuration
  • Adds focused system coverage for the fluent pipeline API

Verification:

  • ./vendor/bin/pest tests/system.test.php --do-not-cache-result
  • ./vendor/bin/pint --test

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant