src/main/php/UriPath.php
private function parsePathArguments()
    {
        if (null !== $this->arguments) {
            return;
        }

        $arguments = [];
        preg_match('/^' . self::pattern($this->configuredPath) . '/', $this->calledPath, $arguments);
        array_shift($arguments);
        $names  = [];
        $this->arguments = [];
        preg_match_all('/[{][^}]*[}]/', str_replace('/', '\/', $this->configuredPath), $names);
        foreach ($names[0] as $key => $name) {
            if (isset($arguments[$key])) {
                $this->arguments[str_replace(['{', '}'], '', $name)] = $arguments[$key];
            }
        }
    }
private function parsePathArguments()
    {
        if (null !== $this->arguments) {
            return;
        }

        $arguments = [];
        preg_match('/^' . self::pattern($this->configuredPath) . '/', $this->calledPath, $arguments);
        array_shift($arguments);
        $names  = [];
        $this->arguments = [];
        preg_match_all('/[{][^}]*[}]/', str_replace('/', '\/', $this->configuredPath), $names);
        foreach ($names[0] as $key => $name) {
            if (isset($arguments[$key])) {
                $this->arguments[str_replace(['{', '}'], '', $name)] = $arguments[$key];
            }
        }
    }
private function parsePathArguments ( ) { if ( null !== $ this -> arguments ) { return ; } $ arguments = [ ] ; preg_match ( '/^' . self :: pattern ( $ this -> configuredPath ) . '/' , $ this -> calledPath , $ arguments ) ; array_shift ( $ arguments ) ; $ names = [ ] ; $ this -> arguments = [ ] ; preg_match_all ( '/[{][^}]*[}]/' , str_replace ( '/' , '\/' , $ this -> configuredPath ) , $ names ) ; foreach ( $ names [ 0 ] as $ key => $ name ) { if ( isset ( $ arguments [ $ key ] ) ) { $ this -> arguments [ str_replace ( [ '{' , '}' ] , '' , $ name ) ] = $ arguments [ $ key ] ; } } }
parses path arguments from called path
parses path arguments from called path