public function registerAutoPresenter(Container $app)
    {
        $app->singleton('autopresenter', function (Container $app) {
            $autoPresenter = new AutoPresenter();

            $autoPresenter->register(new AtomDecorator($autoPresenter, $app));
            $autoPresenter->register(new ArrayDecorator($autoPresenter));
            $autoPresenter->register(new PaginatorDecorator($autoPresenter));

            return $autoPresenter;
        });

        $app->alias('autopresenter', AutoPresenter::class);
    }
public function registerAutoPresenter(Container $app)
    {
        $app->singleton('autopresenter', function (Container $app) {
            $autoPresenter = new AutoPresenter();

            $autoPresenter->register(new AtomDecorator($autoPresenter, $app));
            $autoPresenter->register(new ArrayDecorator($autoPresenter));
            $autoPresenter->register(new PaginatorDecorator($autoPresenter));

            return $autoPresenter;
        });

        $app->alias('autopresenter', AutoPresenter::class);
    }
public function registerAutoPresenter ( Container $ app ) { $ app -> singleton ( 'autopresenter' , function ( Container $ app ) { $ autoPresenter = new AutoPresenter ( ) ; $ autoPresenter -> register ( new AtomDecorator ( $ autoPresenter , $ app ) ) ; $ autoPresenter -> register ( new ArrayDecorator ( $ autoPresenter ) ) ; $ autoPresenter -> register ( new PaginatorDecorator ( $ autoPresenter ) ) ; return $ autoPresenter ; } ) ; $ app -> alias ( 'autopresenter' , AutoPresenter :: class ) ; }
Register the presenter decorator.

@param \Illuminate\Contracts\Container\Container $app

@return void
Register the presenter decorator .