PHP Class PPI\Framework\Module\Controller\ControllerNameParser

Author: Fabien Potencier ([email protected])
Author: Vítor Brandão ([email protected])
Author: Paul Dragoonis ([email protected])
Exibir arquivo Open project: ppi/framework

Protected Properties

Property Type Description
$moduleManager

Public Methods

Method Description
__construct ( Zend\ModuleManager\ModuleManagerInterface $moduleManager ) Constructor.
build ( $controller )
parse ( string $controller ) : string Converts a short notation a:b:c to a class::method.

Private Methods

Method Description
getPartsFromControllerName ( string $controller ) : array

Method Details

__construct() public method

Constructor.
public __construct ( Zend\ModuleManager\ModuleManagerInterface $moduleManager )
$moduleManager Zend\ModuleManager\ModuleManagerInterface A ModuleManagerInterface instance

build() public method

public build ( $controller )

parse() public method

Converts a short notation a:b:c to a class::method.
public parse ( string $controller ) : string
$controller string A short notation controller (a:b:c)
return string A string with class::method

Property Details

$moduleManager protected_oe property

protected $moduleManager