public function setDefaultFormat($format)
    {
        foreach (parent::all() as $route) {
            // Set default format only if not set already (could be defined in annotation)
            if (!$route->getDefault('_format')) {
                $route->setDefault('_format', $format);
            }
        }
    }
public function setDefaultFormat($format)
    {
        foreach (parent::all() as $route) {
            // Set default format only if not set already (could be defined in annotation)
            if (!$route->getDefault('_format')) {
                $route->setDefault('_format', $format);
            }
        }
    }
public function setDefaultFormat ( $ format ) { foreach ( parent :: all ( ) as $ route ) { // Set default format only if not set already (could be defined in annotation) if ( ! $ route -> getDefault ( '_format' ) ) { $ route -> setDefault ( '_format' , $ format ) ; } } }
Sets default format of routes.

@param string $format
Sets default format of routes .