/** * Set the handler's URL path. * * Automatically adds a leading slash and removes trailing ones. */ public static function setHandler($path) { // If set to false or null, use auto-detection. if ($path === false || $path === null) { self::$handler = null; return self::getHandler(); } assert(is_string($path)); return self::$handler = '/' . trim($path, '/'); }