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

[2.x] Add booting and booted callbacks to the HydeExtension feature #1847

Merged
merged 10 commits into from
Jul 13, 2024

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Jul 13, 2024

Abstract

This PR enhances the Extensions API by adding support for booting and booted callbacks directly in the HydeExtension class. This allows extension developers to hook into the Hyde kernel's boot process more easily and perform setup or cleanup tasks.

Changes

  • Added booting() and booted() methods to HydeExtension class
  • Updated ManagesExtensions trait to register these callbacks
  • Modified BootsHydeKernel trait to call the new callbacks
  • Updated tests to cover the new functionality
  • Updated documentation to reflect the new features

Upgrade Notes

This change is backwards-compatible and requires no changes for existing extensions. However, developers can now take advantage of these new methods to perform actions during the kernel boot process.

Copy link

codecov bot commented Jul 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (087f183) to head (af8714f).

Additional details and impacted files
@@             Coverage Diff             @@
##             2.x-dev     #1847   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      1855      1857    +2     
===========================================
  Files            190       190           
  Lines           4909      4914    +5     
===========================================
+ Hits            4909      4914    +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caendesilva caendesilva marked this pull request as ready for review July 13, 2024 17:36
@caendesilva caendesilva merged commit 593293e into 2.x-dev Jul 13, 2024
8 checks passed
@caendesilva caendesilva deleted the extension-class-booting-callbacks branch July 13, 2024 17:37
@caendesilva caendesilva mentioned this pull request Jul 13, 2024
74 tasks
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