public function addDefaults(array $defaults)
    {
        if ($defaults) {
            foreach ($this->routes as $route) {
                $route->addDefaults($defaults);
            }
        }
    }
public function addDefaults(array $defaults)
    {
        if ($defaults) {
            foreach ($this->routes as $route) {
                $route->addDefaults($defaults);
            }
        }
    }
public function addDefaults ( array $ defaults ) { if ( $ defaults ) { foreach ( $ this -> routes as $ route ) { $ route -> addDefaults ( $ defaults ) ; } } }
Adds defaults to all routes.

An existing default value under the same name in a route will be overridden.

@param array $defaults An array of default values
Adds defaults to all routes .