original_string: private function addMergerAnnotations(Application $container)
      {
          if (!isset($container['serializer.annotations'])) {
              throw new \RuntimeException(
                  'The configuration service provider depends on the JmsSerializer Service Provider but the '
                  . '"serializer.annotations" key could not be found in the container.'
              );
          }
  
          $annotations = $container['serializer.annotations'];
          $annotations[] = array(
              'namespace' => 'phpDocumentor\Configuration\Merger\Annotation',
              'path' => __DIR__ . '/../../'
          );
          $container['serializer.annotations'] = $annotations;
      }
code: private function addMergerAnnotations(Application $container)
      {
          if (!isset($container['serializer.annotations'])) {
              throw new \RuntimeException(
                  'The configuration service provider depends on the JmsSerializer Service Provider but the '
                  . '"serializer.annotations" key could not be found in the container.'
              );
          }
  
          $annotations = $container['serializer.annotations'];
          $annotations[] = array(
              'namespace' => 'phpDocumentor\Configuration\Merger\Annotation',
              'path' => __DIR__ . '/../../'
          );
          $container['serializer.annotations'] = $annotations;
      }
code_tokens: private function addMergerAnnotations ( Application $ container ) { if ( ! isset ( $ container [ 'serializer.annotations' ] ) ) { throw new \ RuntimeException ( 'The configuration service provider depends on the JmsSerializer Service Provider but the ' . '"serializer.annotations" key could not be found in the container.' ) ; } $ annotations = $ container [ 'serializer.annotations' ] ; $ annotations [ ] = array ( 'namespace' => 'phpDocumentor\Configuration\Merger\Annotation' , 'path' => __DIR__ . '/../../' ) ; $ container [ 'serializer.annotations' ] = $ annotations ; }
docstring: Adds the annotations for the Merger component to the Serializer.
  
  @param Application $container
  
  @throws \RuntimeException if the annotation handler for Jms Serializer is not added to the container as
  'serializer.annotations' service.
  
  @return void
docstring_tokens: Adds the annotations for the Merger component to the Serializer .