@@ -686,7 +686,7 @@ private static function renameKeys(array $arr, array $xlat): array
686686 /**
687687 * camelCaseAction name -> dash-separated.
688688 */
689- private static function action2path (string $ s ): string
689+ public static function action2path (string $ s ): string
690690 {
691691 $ s = preg_replace ('#(.)(?=[A-Z])# ' , '$1- ' , $ s );
692692 $ s = strtolower ($ s );
@@ -698,7 +698,7 @@ private static function action2path(string $s): string
698698 /**
699699 * dash-separated -> camelCaseAction name.
700700 */
701- private static function path2action (string $ s ): string
701+ public static function path2action (string $ s ): string
702702 {
703703 $ s = preg_replace ('#-(?=[a-z])# ' , ' ' , $ s );
704704 $ s = lcfirst (ucwords ($ s ));
@@ -710,7 +710,7 @@ private static function path2action(string $s): string
710710 /**
711711 * PascalCase:Presenter name -> dash-and-dot-separated.
712712 */
713- private static function presenter2path (string $ s ): string
713+ public static function presenter2path (string $ s ): string
714714 {
715715 $ s = strtr ($ s , ': ' , '. ' );
716716 $ s = preg_replace ('#([^.])(?=[A-Z])# ' , '$1- ' , $ s );
@@ -723,7 +723,7 @@ private static function presenter2path(string $s): string
723723 /**
724724 * dash-and-dot-separated -> PascalCase:Presenter name.
725725 */
726- private static function path2presenter (string $ s ): string
726+ public static function path2presenter (string $ s ): string
727727 {
728728 $ s = preg_replace ('#([.-])(?=[a-z])# ' , '$1 ' , $ s );
729729 $ s = ucwords ($ s );
@@ -736,7 +736,7 @@ private static function path2presenter(string $s): string
736736 /**
737737 * Url encode.
738738 */
739- private static function param2path (string $ s ): string
739+ public static function param2path (string $ s ): string
740740 {
741741 return str_replace ('%2F ' , '/ ' , rawurlencode ($ s ));
742742 }
0 commit comments