|  | @@ 388-390 (lines=3) @@ | 
                                                            
                                    | 385 |  |      */ | 
                                                            
                                    | 386 |  |     private function validateTypeAndService(array $config, $path) | 
                                                            
                                    | 387 |  |     { | 
                                                            
                                    | 388 |  |         if (!isset($config['type']) && !isset($config['service'])) { | 
                                                            
                                    | 389 |  |             throw new InvalidConfigurationException(sprintf('You must set one of "type" or "service" for "%s"', $path)); | 
                                                            
                                    | 390 |  |         } | 
                                                            
                                    | 391 |  |         if (isset($config['type']) && isset($config['service'])) { | 
                                                            
                                    | 392 |  |             throw new InvalidConfigurationException(sprintf('You cannot set both "type" and "service" for "%s" - please choose one.', $path)); | 
                                                            
                                    | 393 |  |         } | 
                                                                                
                                |  | @@ 391-393 (lines=3) @@ | 
                                                            
                                    | 388 |  |         if (!isset($config['type']) && !isset($config['service'])) { | 
                                                            
                                    | 389 |  |             throw new InvalidConfigurationException(sprintf('You must set one of "type" or "service" for "%s"', $path)); | 
                                                            
                                    | 390 |  |         } | 
                                                            
                                    | 391 |  |         if (isset($config['type']) && isset($config['service'])) { | 
                                                            
                                    | 392 |  |             throw new InvalidConfigurationException(sprintf('You cannot set both "type" and "service" for "%s" - please choose one.', $path)); | 
                                                            
                                    | 393 |  |         } | 
                                                            
                                    | 394 |  |     } | 
                                                            
                                    | 395 |  | } | 
                                                            
                                    | 396 |  |  |