src/Router/UrlGenerator/GroupCountBasedDataGenerator.php
public function getData()
    {
        $routes = $this->routeCollector->getData();
        $data = array();
        foreach ($routes[0] as $method => $paths) {
            foreach ($paths as $path => $handler) {
                if (is_array($handler) && isset($handler['name'])) {
                    $data[$handler['name']] = $path;
                }
            }
        }

        foreach ($routes[1] as $method) {
            foreach ($method as $group) {
                $data = array_merge($data, $this->parseDynamicGroup($group));
            }
        }

        return $data;
    }
public function getData()
    {
        $routes = $this->routeCollector->getData();
        $data = array();
        foreach ($routes[0] as $method => $paths) {
            foreach ($paths as $path => $handler) {
                if (is_array($handler) && isset($handler['name'])) {
                    $data[$handler['name']] = $path;
                }
            }
        }

        foreach ($routes[1] as $method) {
            foreach ($method as $group) {
                $data = array_merge($data, $this->parseDynamicGroup($group));
            }
        }

        return $data;
    }
public function getData ( ) { $ routes = $ this -> routeCollector -> getData ( ) ; $ data = array ( ) ; foreach ( $ routes [ 0 ] as $ method => $ paths ) { foreach ( $ paths as $ path => $ handler ) { if ( is_array ( $ handler ) && isset ( $ handler [ 'name' ] ) ) { $ data [ $ handler [ 'name' ] ] = $ path ; } } } foreach ( $ routes [ 1 ] as $ method ) { foreach ( $ method as $ group ) { $ data = array_merge ( $ data , $ this -> parseDynamicGroup ( $ group ) ) ; } } return $ data ; }
Get formatted route data for use by a URL generator

@return array
Get formatted route data for use by a URL generator