Nette\Routing\Route::presenter2path PHP 메소드

presenter2path() 개인적인 정적인 메소드

PascalCase:Presenter name -> dash-and-dot-separated.
private static presenter2path ( $s ) : string
리턴 string
    private static function presenter2path($s)
    {
        $s = strtr($s, ':', '.');
        $s = preg_replace('#([^.])(?=[A-Z])#', '$1-', $s);
        $s = strtolower($s);
        $s = rawurlencode($s);
        return $s;
    }