public function addPaths(array $paths)
    {
        deprecationWarning(
            'ServerRequest::addPaths() is deprecated. ' .
            'Use `withAttribute($key, $value)` instead.'
        );
        foreach (['webroot', 'here', 'base'] as $element) {
            if (isset($paths[$element])) {
                $this->{$element} = $paths[$element];
            }
        }

        return $this;
    }
public function addPaths(array $paths)
    {
        deprecationWarning(
            'ServerRequest::addPaths() is deprecated. ' .
            'Use `withAttribute($key, $value)` instead.'
        );
        foreach (['webroot', 'here', 'base'] as $element) {
            if (isset($paths[$element])) {
                $this->{$element} = $paths[$element];
            }
        }

        return $this;
    }
public function addPaths ( array $ paths ) { deprecationWarning ( 'ServerRequest::addPaths() is deprecated. ' . 'Use `withAttribute($key, $value)` instead.' ) ; foreach ( [ 'webroot' , 'here' , 'base' ] as $ element ) { if ( isset ( $ paths [ $ element ] ) ) { $ this -> { $ element } = $ paths [ $ element ] ; } } return $ this ; }
Add paths to the requests' paths vars. This will overwrite any existing paths.
Provides an easy way to modify, here, webroot and base.

@param array $paths Array of paths to merge in
@return $this The current object, you can chain this method.
@deprecated 3.6.0 Mutating a request in place is deprecated. Use `withAttribute()` to modify paths instead.
Add paths to the requests paths vars . This will overwrite any existing paths . Provides an easy way to modify here webroot and base .