src/Viper/Core/Routing/Router.php
public static function registerCustomRouteClass(string $routeKey, string $routeClass) {
        self::checkRegisterAvailability();
        if (!class_exists($routeClass))
            throw new AppLogicException('Class '.$routeClass.' does not exist');
        self::$customRouteClasses[$routeKey] = $routeClass;
    }
public static function registerCustomRouteClass(string $routeKey, string $routeClass) {
        self::checkRegisterAvailability();
        if (!class_exists($routeClass))
            throw new AppLogicException('Class '.$routeClass.' does not exist');
        self::$customRouteClasses[$routeKey] = $routeClass;
    }
public static function registerCustomRouteClass ( string $ routeKey , string $ routeClass ) { self :: checkRegisterAvailability ( ) ; if ( ! class_exists ( $ routeClass ) ) throw new AppLogicException ( 'Class ' . $ routeClass . ' does not exist' ) ; self :: $ customRouteClasses [ $ routeKey ] = $ routeClass ; }
Can't set custom actions. Only parsable from URL
Can t set custom actions . Only parsable from URL