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

Update grouped endpoint classes to be easier to extend #456

Merged
merged 1 commit into from
Mar 31, 2022

Conversation

michaeljennings
Copy link
Contributor

Firstly, I love this package makes generating documentation super simple.

In my application I have a custom built base class that generates the majority of my API endpoints, you just have to extend it and it handles most of the functionality. I've also made it so this base class handles generating the documentation rather than me doing it from the controllers. All of this is outside of the scope of scribe so I'd extended some of the base classes and made changes for my use case.

I had this working with v1 of scribe, but I've had to update to v3 as we're upgrading to PHP 8.1. I've got this working now with version 3 by extending some of the classes, however in scribe they're created by doing new [class name]. This pull request changes them to use methods to create the classes to make the package more extendable. Without this I'm having to copy and paste code out of the GroupedEndpointsFromApp class as a bunch of the methods are private.

@shalvah shalvah merged commit 961a873 into knuckleswtf:master Mar 31, 2022
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.

2 participants