/**
* Returns the name of the sub-directory the controller is in,
* if any. Relative to APPPATH.'Controllers'.
*
* Only used when auto-routing is turned on.
*/
public function directory(): string
{ if ($this->autoRouter instanceof AutoRouter
) { return $this->autoRouter->
directory();
} return '';
} /**
* Returns the routing information that was matched for this
* request, if a route was defined.
*
* @return array|null
*/