Skip to content

Comments

Allow for YAML rendering pre/post processing.#53

Merged
LukeTowers merged 4 commits intowip/1.2from
wip/yaml-render-processor
Dec 17, 2021
Merged

Allow for YAML rendering pre/post processing.#53
LukeTowers merged 4 commits intowip/1.2from
wip/yaml-render-processor

Conversation

@bennothommo
Copy link
Member

@bennothommo bennothommo commented Nov 3, 2021

This is a BC break since it changes the contract. Classes implementing the Winter\Storm\Parse\Processor\Contracts\YamlProcessor interface should instead extend the Winter\Storm\Parse\Processor\YamlProcessor abstract to maintain parity with the interface.

This change is in preparation of a change that I intend to make for the Builder plugin to ensure that the version.yaml uses quoted version keys when generating the migrations.

This is a BC break since it changes the contract. Classes implementing the "Winter\Storm\Parse\Processor\Contracts\YamlProcessor" interface should instead extend the "Winter\Storm\Parse\Processor\YamlProcessor" abstract to maintain parity with the interface.
@LukeTowers
Copy link
Member

How does this interact with #21 and the related PR?

@bennothommo
Copy link
Member Author

It should be entirely compatible with that PR (besides changing the processor to extend the abstract class as opposed to implementing the interface). These new methods are for rendering though, so while that PR ensures that our older version files can still be read, this will allow us to ensure that the YAML files are correctly written as well.

@LukeTowers LukeTowers changed the base branch from develop to wip/1.2 December 14, 2021 21:26
@LukeTowers
Copy link
Member

@bennothommo what's the status of this?

@bennothommo
Copy link
Member Author

@LukeTowers it should be ready to go.

@LukeTowers
Copy link
Member

@bennothommo looks like the tests need to be fixed for this PR

@bennothommo
Copy link
Member Author

@LukeTowers fixed up the tests

@LukeTowers LukeTowers merged commit d37c23b into wip/1.2 Dec 17, 2021
@LukeTowers LukeTowers deleted the wip/yaml-render-processor branch December 17, 2021 02:12
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.

2 participants