public function validateUri(UriInterface $uri)
    {
        $path = trim($uri->getPath(), '/');

        $this->validateDepth($path);

        foreach (explode('/', $path) as $key) {
            $this->validateKeySize($key);
            $this->validateChars($key);
        }
    }
public function validateUri(UriInterface $uri)
    {
        $path = trim($uri->getPath(), '/');

        $this->validateDepth($path);

        foreach (explode('/', $path) as $key) {
            $this->validateKeySize($key);
            $this->validateChars($key);
        }
    }
public function validateUri ( UriInterface $ uri ) { $ path = trim ( $ uri -> getPath ( ) , '/' ) ; $ this -> validateDepth ( $ path ) ; foreach ( explode ( '/' , $ path ) as $ key ) { $ this -> validateKeySize ( $ key ) ; $ this -> validateChars ( $ key ) ; } }
Checks the reference URI for invalid properties.

@param UriInterface $uri

@throws InvalidArgumentException on
Checks the reference URI for invalid properties .