Skip to content

[Enhancement] Refactor winter:env, winter:install to use new EnvFile & ArrayFile parsers - #404

Merged
LukeTowers merged 24 commits into
wip/1.2from
wip/config-file
Mar 16, 2022
Merged

LukeTowers merged 24 commits into
wip/1.2from
wip/config-file

Conversation

@LukeTowers

@LukeTowers LukeTowers commented Jan 14, 2022 •

Copy link
Copy Markdown
Member

Related to wintercms/storm#40

TODO:

  • Refactor mail config mirroring to work like the database one now since the default mail config structure has changed.

@LukeTowers

Copy link
Copy Markdown
Member Author

@jaxwilko are these tests only failing because it's not pulling in the correct version of Storm?

@jaxwilko

Copy link
Copy Markdown
Member

@LukeTowers should be yes, storm can get merged first as it doesn't overwrite anything in use, then this branch should run the tests fine :)

@LukeTowers
LukeTowers changed the base branch from develop to wip/1.2 February 15, 2022 19:33
# Conflicts:
#	modules/system/console/WinterEnv.php
This serves the dual purpose of both testing the output of the ArrayFile parser and normalizing the configs so that any future uses of ArrayFile on them will have easier to understand diffs.

These were generated by running the following in Tinker:

use Winter\Storm\Parse\PHP\ArrayFile;

$configPaths = glob(base_path('config/*'));

foreach ($configPaths as $path) {
  if (is_file($path)) {
  	ArrayFile::open($path)->write();
  }
}
Comment thread config/app.php Resolved
Comment thread config/app.php Resolved
Comment thread config/app.php Resolved
Comment thread config/auth.php Resolved
Comment thread config/logging.php Resolved
Comment thread config/mail.php Resolved
Comment thread config/session.php Resolved
@LukeTowers LukeTowers added this to the v1.2.0 milestone Feb 18, 2022
@LukeTowers LukeTowers changed the title [WIP] Config File Replacement [Enhancement] Refactor winter:env, winter:install to use new EnvFile & ArrayFile parsers Feb 18, 2022
@LukeTowers

Copy link
Copy Markdown
Member Author

Blocked by comments, especially the issue with the include() broken parsing / rendering.

@LukeTowers LukeTowers mentioned this pull request Feb 18, 2022
45 of 71 tasks
@LukeTowers

Copy link
Copy Markdown
Member Author

Blocked by remaining TODO item and wintercms/storm#40 (comment)

This will minimize changes when ConfigWriter is used to set config values through PHP.
@LukeTowers LukeTowers added Status: Completed enhancement PRs that implement a new feature or substantial change and removed Status: In Progress labels Mar 16, 2022
@LukeTowers
LukeTowers merged commit 36a42a6 into wip/1.2 Mar 16, 2022
@LukeTowers
LukeTowers deleted the wip/config-file branch March 16, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement PRs that implement a new feature or substantial change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants