src/Dispatcher/ClassAutoBind.php
private function getFunctionArgumentsControlers(
        $paramMap,
        $matches,
        $parameters,
        $handlers
    ) {
        $output  = [];
        $matches = array_values($matches);

        if (isset($parameters)) {
            foreach ($handlers as $placeholder) {
                if ($this->isPlaceholder($placeholder)) {
                    foreach ($parameters as $key => $parameterName) {
                        if ($parameterName[0][0] == $placeholder) {
                            unset($parameters[$key]);
                            unset($matches[$key]);
                        }
                    }
                }
            }

            $parameters = array_values($parameters);
            $matches    = array_values($matches);

            foreach ($parameters as $key => $valueName) {
                foreach ($paramMap as $possition => $value) {
                    if ($value == $valueName[1][0]) {
                        $output[] = $matches[$possition];
                    }
                }
            }
        }

        return $output;
    }
private function getFunctionArgumentsControlers(
        $paramMap,
        $matches,
        $parameters,
        $handlers
    ) {
        $output  = [];
        $matches = array_values($matches);

        if (isset($parameters)) {
            foreach ($handlers as $placeholder) {
                if ($this->isPlaceholder($placeholder)) {
                    foreach ($parameters as $key => $parameterName) {
                        if ($parameterName[0][0] == $placeholder) {
                            unset($parameters[$key]);
                            unset($matches[$key]);
                        }
                    }
                }
            }

            $parameters = array_values($parameters);
            $matches    = array_values($matches);

            foreach ($parameters as $key => $valueName) {
                foreach ($paramMap as $possition => $value) {
                    if ($value == $valueName[1][0]) {
                        $output[] = $matches[$possition];
                    }
                }
            }
        }

        return $output;
    }
private function getFunctionArgumentsControlers ( $ paramMap , $ matches , $ parameters , $ handlers ) { $ output = [ ] ; $ matches = array_values ( $ matches ) ; if ( isset ( $ parameters ) ) { foreach ( $ handlers as $ placeholder ) { if ( $ this -> isPlaceholder ( $ placeholder ) ) { foreach ( $ parameters as $ key => $ parameterName ) { if ( $ parameterName [ 0 ] [ 0 ] == $ placeholder ) { unset ( $ parameters [ $ key ] ) ; unset ( $ matches [ $ key ] ) ; } } } } $ parameters = array_values ( $ parameters ) ; $ matches = array_values ( $ matches ) ; foreach ( $ parameters as $ key => $ valueName ) { foreach ( $ paramMap as $ possition => $ value ) { if ( $ value == $ valueName [ 1 ] [ 0 ] ) { $ output [ ] = $ matches [ $ possition ] ; } } } } return $ output ; }
Get function arguments for controler

@param mixed $paramMap   parameter map
@param mixed $matches    found matched variables
@param mixed $parameters route parameters
@param mixed $handlers   handler that should be executed

@return mixed
Get function arguments for controler