protected function setupEventFiring(Container $app)
    {
        $app['view']->composer('*', function ($view) use ($app) {
            if ($view instanceof View) {
                $app['events']->dispatch('content.rendering', [$view]);
            }
        });
    }
protected function setupEventFiring(Container $app)
    {
        $app['view']->composer('*', function ($view) use ($app) {
            if ($view instanceof View) {
                $app['events']->dispatch('content.rendering', [$view]);
            }
        });
    }
protected function setupEventFiring ( Container $ app ) { $ app [ 'view' ] -> composer ( '*' , function ( $ view ) use ( $ app ) { if ( $ view instanceof View ) { $ app [ 'events' ] -> dispatch ( 'content.rendering' , [ $ view ] ) ; } } ) ; }
Setup the event firing.

Every time a view is rendered, fire a new event.

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

@return void
Setup the event firing .