Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This is a little module that will replace out Drupal core's path.inc with a version that uses objects, so that developers can more easily swap out specific functions in path.inc.