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);
                }
            )
        );
    }
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);
                }
            )
        );
    }
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 ) ; } ) ) ; }
Adds the assembler factory and attaches the basic assemblers with key 'descriptor.builder.assembler.factory'.

@param Application $app

@return void
Adds the assembler factory and attaches the basic assemblers with key descriptor . builder . assembler . factory .