protected function resolveArgumentsParameters(array $arguments)
    {
        foreach ($arguments as $argument => &$value) {
            if (is_string($value) === false || preg_match('/%[\S_\-]+%/', $value, $matches) === false) {
                continue;
            }

            $name = $matches[0];

            if (array_key_exists($name, $this->parameters) === false) {
                continue;
            }

            if (is_string($this->parameters[$name])) {
                $value = str_replace($name, $this->parameters[$name], (string) $value);

                continue;
            }

            $value = $this->parameters[$name];
        }

        return $arguments;
    }
protected function resolveArgumentsParameters(array $arguments)
    {
        foreach ($arguments as $argument => &$value) {
            if (is_string($value) === false || preg_match('/%[\S_\-]+%/', $value, $matches) === false) {
                continue;
            }

            $name = $matches[0];

            if (array_key_exists($name, $this->parameters) === false) {
                continue;
            }

            if (is_string($this->parameters[$name])) {
                $value = str_replace($name, $this->parameters[$name], (string) $value);

                continue;
            }

            $value = $this->parameters[$name];
        }

        return $arguments;
    }
protected function resolveArgumentsParameters ( array $ arguments ) { foreach ( $ arguments as $ argument => & $ value ) { if ( is_string ( $ value ) === false || preg_match ( '/%[\S_\-]+%/' , $ value , $ matches ) === false ) { continue ; } $ name = $ matches [ 0 ] ; if ( array_key_exists ( $ name , $ this -> parameters ) === false ) { continue ; } if ( is_string ( $ this -> parameters [ $ name ] ) ) { $ value = str_replace ( $ name , $ this -> parameters [ $ name ] , ( string ) $ value ) ; continue ; } $ value = $ this -> parameters [ $ name ] ; } return $ arguments ; }
Resolve parameters in arguments.

@param array $arguments

@return array
Resolve parameters in arguments .