Oihana PHP System

ControllerTrait

Table of Contents

Methods

getController()  : Controller|null
Returns a Controller reference with a specific definition.

Methods

getController()

Returns a Controller reference with a specific definition.

public getController(array<string|int, mixed>|string|null|Controller $definition[, string|null $debugMethod = null ]) : Controller|null
Parameters
$definition : array<string|int, mixed>|string|null|Controller
  • If the $definition is an array, try to use the $definition[ AQL::CONTROLLER ] reference to find the controller in the DI container.
  • If the $definition is a string, the $definition is the reference to find the controller in the DI container.
  • If the $definition is an instance of Controller the definition is returned directly.
  • Else return null.
  • $debugMethod : string|null = null
    Return values
    Controller|null
    
            
    On this page

    Search results