Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge options from site.php config into hyde.php #964

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Feb 10, 2023

Abstract

Highly experimental PR to merge the site.php config file with the hyde.php one.

Upgrade path for existing installations

Step one - Move config settings

Start by copying all the options in the config/site.php config to config/hyde.php

Step two - Update config calls

Next, if you have written custom code, or created/published any Blade views, that calls config('site.XXX') you need to replace that with config('hyde.XXX')

This is fairly easy using search+replace across files in VS Code or another modern code editor or IDE. Try searching for 'site. and you'll find matches needing replacement. See 73143af for an example for what you want.

@caendesilva caendesilva force-pushed the merge-site-config-into-hyde-config branch from 7c0b7df to e8a65fe Compare February 10, 2023 19:08
@codecov
Copy link

codecov bot commented Feb 10, 2023

Codecov Report

Merging #964 (70392e2) into separate-internal-application-files-from-project-structure- (98887e0) will not change coverage.
The diff coverage is n/a.

@@                                        Coverage Diff                                        @@
##             separate-internal-application-files-from-project-structure-      #964     +/-   ##
=================================================================================================
  Coverage                                                         100.00%   100.00%             
+ Complexity                                                          2532      1266   -1266     
=================================================================================================
  Files                                                                302       151    -151     
  Lines                                                               6680      3339   -3341     
=================================================================================================
- Hits                                                                6680      3339   -3341     
Impacted Files Coverage Δ
...ndation/Providers/ConfigurationServiceProvider.php 100.00% <0.00%> (ø)
...ramework/src/Console/Commands/BuildSiteCommand.php
packages/framework/src/Facades/Features.php
packages/framework/src/Facades/Site.php
packages/framework/src/Foundation/Hyperlinks.php
...ndation/Providers/ConfigurationServiceProvider.php
...mework/Features/XmlGenerators/RssFeedGenerator.php
...es/framework/src/Framework/HydeServiceProvider.php
.../Framework/Services/DocumentationSearchService.php
...rc/Framework/Services/YamlConfigurationService.php
... and 142 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Replace `config('site')` calls with `config('hyde')`

Replace `config(['site'])` calls with `config(['hyde'])`

Replace `Config::get('site')` calls with `Config::get('hyde')`
@caendesilva caendesilva force-pushed the merge-site-config-into-hyde-config branch from aeb8425 to 73143af Compare February 10, 2023 19:48
config/docs.php Outdated Show resolved Hide resolved
@caendesilva caendesilva force-pushed the merge-site-config-into-hyde-config branch from df506f4 to 38ac03c Compare February 11, 2023 14:08
@caendesilva caendesilva marked this pull request as ready for review February 11, 2023 15:50
@caendesilva caendesilva merged commit 0cff459 into separate-internal-application-files-from-project-structure- Feb 11, 2023
@caendesilva caendesilva deleted the merge-site-config-into-hyde-config branch February 11, 2023 16:59
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