original_string: protected function addAssemblers(Application $app)
      {
          $app['descriptor.builder.assembler.factory'] = $app->share(
              function () {
                  return new AssemblerFactory();
              }
          );
  
          $provider = $this;
          $app['descriptor.builder.assembler.factory'] = $app->share(
              $app->extend(
                  'descriptor.builder.assembler.factory',
                  function ($factory) use ($provider, $app) {
                      return $provider->attachAssemblersToFactory($factory, $app);
                  }
              )
          );
      }
code: protected function addAssemblers(Application $app)
      {
          $app['descriptor.builder.assembler.factory'] = $app->share(
              function () {
                  return new AssemblerFactory();
              }
          );
  
          $provider = $this;
          $app['descriptor.builder.assembler.factory'] = $app->share(
              $app->extend(
                  'descriptor.builder.assembler.factory',
                  function ($factory) use ($provider, $app) {
                      return $provider->attachAssemblersToFactory($factory, $app);
                  }
              )
          );
      }
code_tokens: protected function addAssemblers ( Application $ app ) { $ app [ 'descriptor.builder.assembler.factory' ] = $ app -> share ( function ( ) { return new AssemblerFactory ( ) ; } ) ; $ provider = $ this ; $ app [ 'descriptor.builder.assembler.factory' ] = $ app -> share ( $ app -> extend ( 'descriptor.builder.assembler.factory' , function ( $ factory ) use ( $ provider , $ app ) { return $ provider -> attachAssemblersToFactory ( $ factory , $ app ) ; } ) ) ; }
docstring: Adds the assembler factory and attaches the basic assemblers with key 'descriptor.builder.assembler.factory'.
  
  @param Application $app
  
  @return void
docstring_tokens: Adds the assembler factory and attaches the basic assemblers with key descriptor . builder . assembler . factory .