protected function filterActionMethodName($name)
    {
        $filter = new FilterChain;
        $filter->attachByName('Zend\Filter\Word\CamelCaseToDash');
        $filter->attachByName('StringToLower');
        return rtrim(preg_replace('/action$/', '', $filter->filter($name)), '-');
    }
protected function filterActionMethodName($name)
    {
        $filter = new FilterChain;
        $filter->attachByName('Zend\Filter\Word\CamelCaseToDash');
        $filter->attachByName('StringToLower');
        return rtrim(preg_replace('/action$/', '', $filter->filter($name)), '-');
    }
protected function filterActionMethodName ( $ name ) { $ filter = new FilterChain ; $ filter -> attachByName ( 'Zend\Filter\Word\CamelCaseToDash' ) ; $ filter -> attachByName ( 'StringToLower' ) ; return rtrim ( preg_replace ( '/action$/' , '' , $ filter -> filter ( $ name ) ) , '-' ) ; }
Sanitizes action name to use in route.

@param string $name
@return string
Sanitizes action name to use in route .