PHP Class Webiny\Component\Rest\Parser\PathTransformations

Inheritance: use trait Webiny\Component\StdLib\StdLibTrait
Show file Open project: Webiny/Framework Class Usage Examples

Public Methods

Method Description
classNameToUrl ( string $className, boolean $normalize ) : string Transforms the class name to url path.
methodNameToUrl ( string $methodName ) : string Transforms method name to a url path.

Method Details

classNameToUrl() public static method

Transforms the class name to url path.
public static classNameToUrl ( string $className, boolean $normalize ) : string
$className string Class name.
$normalize boolean Should the name be normalized or not
return string

methodNameToUrl() public static method

Transforms method name to a url path.
public static methodNameToUrl ( string $methodName ) : string
$methodName string Method name.
return string