src/Url.php
public function replace(array $placeholders = [])
    {
        if (empty($placeholders)) {
            return $this;
        }
        $callback = function ($value) use ($placeholders) {
            return StringHelper::replace($value, $placeholders, false);
        };
        $this->data = ArrayHelper::map($this->data, $callback, true);
        return $this;
    }
public function replace(array $placeholders = [])
    {
        if (empty($placeholders)) {
            return $this;
        }
        $callback = function ($value) use ($placeholders) {
            return StringHelper::replace($value, $placeholders, false);
        };
        $this->data = ArrayHelper::map($this->data, $callback, true);
        return $this;
    }
public function replace ( array $ placeholders = [ ] ) { if ( empty ( $ placeholders ) ) { return $ this ; } $ callback = function ( $ value ) use ( $ placeholders ) { return StringHelper :: replace ( $ value , $ placeholders , false ) ; } ; $ this -> data = ArrayHelper :: map ( $ this -> data , $ callback , true ) ; return $ this ; }
Replacing placeholders to URL-data.
@param array $placeholders
@return static
Replacing placeholders to URL - data .