| 
                                
                                    @@ 119-126 (lines=8) @@
                                 | 
                            
                                                            
                                    | 116 | 
                                     | 
                                                            $collection->add($routeName, $route);  | 
                                
                                                            
                                    | 117 | 
                                     | 
                                                        }  | 
                                
                                                            
                                    | 118 | 
                                     | 
                                                    } else { | 
                                
                                                            
                                    | 119 | 
                                     | 
                                                        foreach ($globals['locales'] as $locale => $localePrefix) { | 
                                
                                                            
                                    | 120 | 
                                     | 
                                                            $routeName = "{$name}.{$locale}"; | 
                                
                                                            
                                    | 121 | 
                                     | 
                                                            $routePath = $localePrefix . $path;  | 
                                
                                                            
                                    | 122 | 
                                     | 
                                                            $route = $this->createRoute($routePath, $defaults, $requirements, $options, $host, $schemes, $methods, $condition);  | 
                                
                                                            
                                    | 123 | 
                                     | 
                                                            $this->configureRoute($route, $class, $method, $annotation);  | 
                                
                                                            
                                    | 124 | 
                                     | 
                                                            $route->setDefault('_locale', $locale); | 
                                
                                                            
                                    | 125 | 
                                     | 
                                                            $collection->add($routeName, $route);  | 
                                
                                                            
                                    | 126 | 
                                     | 
                                                        }  | 
                                
                                                            
                                    | 127 | 
                                     | 
                                                    }  | 
                                
                                                            
                                    | 128 | 
                                     | 
                                                } else { | 
                                
                                                            
                                    | 129 | 
                                     | 
                                                    if ($isLocalized) { | 
                                
                                                                                
                                 | 
                                
                                    @@ 130-137 (lines=8) @@
                                 | 
                            
                                                            
                                    | 127 | 
                                     | 
                                                    }  | 
                                
                                                            
                                    | 128 | 
                                     | 
                                                } else { | 
                                
                                                            
                                    | 129 | 
                                     | 
                                                    if ($isLocalized) { | 
                                
                                                            
                                    | 130 | 
                                     | 
                                                        foreach ($locales as $locale => $localePath) { | 
                                
                                                            
                                    | 131 | 
                                     | 
                                                            $routePath = $globals['path'] . $localePath;  | 
                                
                                                            
                                    | 132 | 
                                     | 
                                                            $routeName = "{$name}.{$locale}"; | 
                                
                                                            
                                    | 133 | 
                                     | 
                                                            $route = $this->createRoute($routePath, $defaults, $requirements, $options, $host, $schemes, $methods, $condition);  | 
                                
                                                            
                                    | 134 | 
                                     | 
                                                            $this->configureRoute($route, $class, $method, $annotation);  | 
                                
                                                            
                                    | 135 | 
                                     | 
                                                            $route->setDefault('_locale', $locale); | 
                                
                                                            
                                    | 136 | 
                                     | 
                                                            $collection->add($routeName, $route);  | 
                                
                                                            
                                    | 137 | 
                                     | 
                                                        }  | 
                                
                                                            
                                    | 138 | 
                                     | 
                                                    } else { | 
                                
                                                            
                                    | 139 | 
                                     | 
                                                        $routePath = $globals['path'] . $path;  | 
                                
                                                            
                                    | 140 | 
                                     | 
                                                        $route = $this->createRoute($routePath, $defaults, $requirements, $options, $host, $schemes, $methods, $condition);  |