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

Improve the codebase using the new Feature enum #1652

Merged
merged 24 commits into from
Apr 11, 2024

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Apr 10, 2024

Utilizes the enum added in #1650 to improve the codebase and makes it easier to increase its adoption. It also cherry picks some changes from #1651

It also deprecates passing a string to the HydeKernel::hasFeature() method and doing so will trigger a deprecation and build warning:

image

@if(Hyde::hasFeature('html-pages'))

@caendesilva caendesilva force-pushed the improve-codebase-by-using-the-new-feature-enum branch from e4094e7 to ac9a6a0 Compare April 10, 2024 14:26
@caendesilva caendesilva force-pushed the improve-codebase-by-using-the-new-feature-enum branch from ac9a6a0 to 085cc1d Compare April 10, 2024 14:27
@caendesilva caendesilva force-pushed the improve-codebase-by-using-the-new-feature-enum branch from cc664ea to 3ae0e24 Compare April 11, 2024 09:25
@caendesilva caendesilva force-pushed the improve-codebase-by-using-the-new-feature-enum branch from 956f5e4 to 88e9866 Compare April 11, 2024 09:33
Update features toArray representation to use camelCase instead of kebab-case to match other arrayable formats, like in the HydeKernel.
…ions"

This reverts commit df37cce as it may be out of scope for this PR. Consider instead enforcing a common convention in v2.
This does not add any new information
@caendesilva caendesilva marked this pull request as ready for review April 11, 2024 09:52
@caendesilva caendesilva merged commit 940d9ae into master Apr 11, 2024
19 checks passed
@caendesilva caendesilva deleted the improve-codebase-by-using-the-new-feature-enum branch April 11, 2024 09:54
caendesilva added a commit that referenced this pull request Apr 13, 2024
Fixes an issue introduced in #1652
caendesilva pushed a commit to hydephp/framework that referenced this pull request Apr 13, 2024
caendesilva pushed a commit to hydephp/framework that referenced this pull request Apr 13, 2024
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