src/TokenResolver.php
protected function cleanToken() {
    if ($token_name = $this->getToken()) {
      // Remove the token and arguments and return the path.
      $path = substr($this->path, strlen($token_name));
      return preg_replace('/<.*>/', '', $path);
    }
    $message = sprintf('No token could be found in "%s". Available tokens are: %s.', $this->path, implode(', ', array_keys($this->supportedTokens)));
    throw new ClassLoaderException($message);
  }
protected function cleanToken() {
    if ($token_name = $this->getToken()) {
      // Remove the token and arguments and return the path.
      $path = substr($this->path, strlen($token_name));
      return preg_replace('/<.*>/', '', $path);
    }
    $message = sprintf('No token could be found in "%s". Available tokens are: %s.', $this->path, implode(', ', array_keys($this->supportedTokens)));
    throw new ClassLoaderException($message);
  }
protected function cleanToken ( ) { if ( $ token_name = $ this -> getToken ( ) ) { // Remove the token and arguments and return the path. $ path = substr ( $ this -> path , strlen ( $ token_name ) ) ; return preg_replace ( '/<.*>/' , '' , $ path ) ; } $ message = sprintf ( 'No token could be found in "%s". Available tokens are: %s.' , $ this -> path , implode ( ', ' , array_keys ( $ this -> supportedTokens ) ) ) ; throw new ClassLoaderException ( $ message ) ; }
Removes the token from the tokenized path.

@throws ClassLoaderException
If no token can be found.

@return string
The cleaned path.
Removes the token from the tokenized path .