DebugRouterCommand

  • Full name: \CEKW\WpPlugin\DebugRouterCommand
  • This class implements: \CEKW\WpPlugin\CommandInterface
Table of contents
  1. Properties
  2. Methods
    1. __construct
    2. __invoke
  3. OPTIONS
  4. EXAMPLES
    1. getControllerFromRoute

Properties

Name Type Description
routeCollection \Symfony\Component\Routing\RouteCollection  

Methods

__construct

DebugRouterCommand::__construct(\Symfony\Component\Routing\RouteCollection routeCollection)

Parameters:

Parameter Type Description
routeCollection \Symfony\Component\Routing\RouteCollection  

__invoke

Display additional routes added on top of WordPress.

OPTIONS

[]
The name of the route to get detailed information about.

EXAMPLES

wp cekw debug:router
wp cekw debug:router book_single
DebugRouterCommand::__invoke(array args, array assocArgs): mixed

Parameters:

Parameter Type Description
args array  
assocArgs array  

Returns: mixed

getControllerFromRoute

DebugRouterCommand::getControllerFromRoute(\Symfony\Component\Routing\Route route): string

Parameters:

Parameter Type Description
route \Symfony\Component\Routing\Route  

Returns: string