src/Dispatcher/ClassAutoBind.php
private function transformHandler($matches, $parameters, $handler)
    {
        $transformed = [];
        foreach ($handler as $target => $placeholder) {
            foreach ($parameters as $key => $parameterName) {
                if ($parameterName[0][0] == $placeholder) {
                    if ($target == 'controler') {
                        $transformed[$target] = $matches[$key].'Controler';
                    } else {
                        $transformed[$target] = $matches[$key];
                    }
                }
            }
        }

        return $transformed;
    }
private function transformHandler($matches, $parameters, $handler)
    {
        $transformed = [];
        foreach ($handler as $target => $placeholder) {
            foreach ($parameters as $key => $parameterName) {
                if ($parameterName[0][0] == $placeholder) {
                    if ($target == 'controler') {
                        $transformed[$target] = $matches[$key].'Controler';
                    } else {
                        $transformed[$target] = $matches[$key];
                    }
                }
            }
        }

        return $transformed;
    }
private function transformHandler ( $ matches , $ parameters , $ handler ) { $ transformed = [ ] ; foreach ( $ handler as $ target => $ placeholder ) { foreach ( $ parameters as $ key => $ parameterName ) { if ( $ parameterName [ 0 ] [ 0 ] == $ placeholder ) { if ( $ target == 'controler' ) { $ transformed [ $ target ] = $ matches [ $ key ] . 'Controler' ; } else { $ transformed [ $ target ] = $ matches [ $ key ] ; } } } } return $ transformed ; }
Transform provided handler with variables and parameters

@param mixed $matches    found matched variables
@param mixed $parameters route parameters
@param mixed $handler    handler that should be executed

@return mixed
Transform provided handler with variables and parameters