示例#1
0
 /**
  * Build controller class name
  *
  * @param string $module
  * @param string $actionPath
  * @return string
  */
 public function getActionClassName($module, $actionPath)
 {
     $prefix = $this->pathPrefix ? 'Controller\\' . $this->pathPrefix : 'Controller';
     return $this->nameBuilder->buildClassName(array($module, $prefix, $actionPath));
 }
示例#2
0
 /**
  * @param array $parts
  * @param string $expected
  *
  * @dataProvider buildClassNameDataProvider
  */
 public function testBuildClassName($parts, $expected)
 {
     $this->assertEquals($expected, $this->nameBuilder->buildClassName($parts));
 }