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

HydePHP v2.0 Feature Tracker #1499

Open
19 of 28 tasks
Tracked by #1565
caendesilva opened this issue Dec 13, 2023 Discussed in #1496 · 2 comments
Open
19 of 28 tasks
Tracked by #1565

HydePHP v2.0 Feature Tracker #1499

caendesilva opened this issue Dec 13, 2023 Discussed in #1496 · 2 comments
Milestone

Comments

@caendesilva
Copy link
Member

caendesilva commented Dec 13, 2023

Discussed in #1496

Originally posted by caendesilva December 13, 2023

Feature ideas

Here is what I want to do for v2.0

Tasks

Preview Give feedback
  1. RFC

Other tasks

Related Tasks

Preview Give feedback
@caendesilva
Copy link
Member Author

Thinking how we should handle the v1 docs on the website. Maybe export them to HTML pages under _pages/docs/1.x/?

@caendesilva
Copy link
Member Author

Would be cool to be able to extend/decorate page models. For example, want to customize a bunch of stuff for MarkdownPages, maybe provide your own MakdownPage class extending the main one?

Maybe something like in Laravel?

Extending Bindings
The extend method allows the modification of resolved services. For example, when a service is resolved, you may run additional code to decorate or configure the service. The extend method accepts two arguments, the service class you're extending and a closure that should return the modified service. The closure receives the service being resolved and the container instance:

$this->app->extend(Service::class, function (Service $service, Application $app) {
return new DecoratedService($service);
});

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

No branches or pull requests

1 participant