code: protected function getRequestChainFromUri($requestedUri)
      {
          // Trim any get variables and the requested format, eg: /requested/uri.format?get=variables
          $requestedUri = preg_replace('/[\?\.].*$/', '', $requestedUri);
          // Clear the base url
  
          $requestChain = explode('/', $requestedUri);
  
          if (!$requestChain[0]) {
              unset($requestChain[0]);
          }
  
          return array_values($requestChain);
      }
docs: Breaks up the uri.
  
  Breaks the uri into slugs used to work out the route.
  
  @param string $requestedUri
  @return string[]