original_string: protected function getCurrentPathRelativeToBase($path = null)
      {
          if (!$path) {
              // using $_SERVER instead of using Request method
              // to get original request path instead of any forwarded request
              $path = $_SERVER['REQUEST_URI'];
          }
          $base_path = $this->app['request']->getBasePath();
          return substr(strtok($path, '?'), strlen($base_path));
      }
code: protected function getCurrentPathRelativeToBase($path = null)
      {
          if (!$path) {
              // using $_SERVER instead of using Request method
              // to get original request path instead of any forwarded request
              $path = $_SERVER['REQUEST_URI'];
          }
          $base_path = $this->app['request']->getBasePath();
          return substr(strtok($path, '?'), strlen($base_path));
      }
code_tokens: protected function getCurrentPathRelativeToBase ( $ path = null ) { if ( ! $ path ) { // using $_SERVER instead of using Request method // to get original request path instead of any forwarded request $ path = $ _SERVER [ 'REQUEST_URI' ] ; } $ base_path = $ this -> app [ 'request' ] -> getBasePath ( ) ; return substr ( strtok ( $ path , '?' ) , strlen ( $ base_path ) ) ; }
docstring: Get current path relative to base path.
  @param string $path Path to process. Optional, default to current path
  @return string
docstring_tokens: Get current path relative to base path .