public function getStatisticsRouting():array
    {

        $f = $this->getallRouting();
        $fc = 0;
        $fdisabled = 0;
        $fpublic = 0;

        foreach ($f as $one) {
            $fc += $one['count_route'];
            $z = $this-> getMercureContent(str_replace(".merc", "", $one['name']), $one['app']);
            foreach ($z as $two) {
                if ($two['visibility'] == "disabled") {
                    $fdisabled++;
                } elseif ($two['visibility'] == "public") {
                    $fpublic++;
                }
            }
        }

        return (array("number" => $fc, "disabled" => $fdisabled, "public" => $fpublic));
    }
public function getStatisticsRouting():array
    {

        $f = $this->getallRouting();
        $fc = 0;
        $fdisabled = 0;
        $fpublic = 0;

        foreach ($f as $one) {
            $fc += $one['count_route'];
            $z = $this-> getMercureContent(str_replace(".merc", "", $one['name']), $one['app']);
            foreach ($z as $two) {
                if ($two['visibility'] == "disabled") {
                    $fdisabled++;
                } elseif ($two['visibility'] == "public") {
                    $fpublic++;
                }
            }
        }

        return (array("number" => $fc, "disabled" => $fdisabled, "public" => $fpublic));
    }
public function getStatisticsRouting ( ) : array { $ f = $ this -> getallRouting ( ) ; $ fc = 0 ; $ fdisabled = 0 ; $ fpublic = 0 ; foreach ( $ f as $ one ) { $ fc += $ one [ 'count_route' ] ; $ z = $ this -> getMercureContent ( str_replace ( ".merc" , "" , $ one [ 'name' ] ) , $ one [ 'app' ] ) ; foreach ( $ z as $ two ) { if ( $ two [ 'visibility' ] == "disabled" ) { $ fdisabled ++ ; } elseif ( $ two [ 'visibility' ] == "public" ) { $ fpublic ++ ; } } } return ( array ( "number" => $ fc , "disabled" => $ fdisabled , "public" => $ fpublic ) ) ; }
Get routing statistics
@return array Routing statistics
@throws \Exception
Get routing statistics