Updated example of View Composer : Correction

The current example throws an exception as it is no longer an event object and right now the callback is given the view object.