Skip to content

Admin function to get available controller and their methods #16

@LessComplexity

Description

@LessComplexity

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions