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

Admin function to get available controller and their methods #16

Open
LessComplexity opened this issue Jun 25, 2020 · 0 comments
Open
Labels
controllers core enhancement New feature or request good first issue Good for newcomers

Comments

@LessComplexity
Copy link
Member

Abstract
Getting all the controllers and their methods in admin mode will allow to make features easier to use with autocompletion and a suggestion mechanism.

Desired Result
The following functions in the Admin\Control controller:

  • getAvailableControllers() - Will return in the status the set of all controllers in the machine/controllers directory. Controllers will be returned with their namespace excluding 'APIShift/Controllers' in the start which is obvious.
  • getControllerMethods() -> Will get the requested controller using the $_POST['controller'] variable. and return in it's status the set of methods present in the controller.

Additional context
Following these 2 features, we can integrate them in the controller access page and later in other systems that will need to work and validate work with controllers and methods in the system - there they become the features that allows for autocompletion and suggestion.

@LessComplexity LessComplexity added enhancement New feature or request good first issue Good for newcomers core controllers labels Jun 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
controllers core enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant