title: Laravel 5.2 event handling error
body: <p>I have recently updated Laravel from 5.0 to 5.2 but it seems the Event handling has changed a bit.</p>
  
  <p>I keep getting this nasty error when I use $event variable in my Listener.
  Here is the incriminated code:</p>
  
  <pre><code>&lt;?php 
  
  namespace App\Listeners;
  
  use App\Events\UserWasCreated;
  
  use Illuminate\Contracts\Mail\MailQueue;
  use Illuminate\Queue\InteractsWithQueue;
  use Illuminate\Contracts\Queue\ShouldQueue;
  
  use Lang;
  
  class UserCreated implements ShouldQueue
  {
      /**
       * @var Mailer
       */
      private $mailer;
  
      /**
       * Create the event listener.
       *
       * @param Mailer $mailer
       */
      public function __construct( MailQueue $mailer )
      {
          $this-&gt;mailer = $mailer;
      }
  
      /**
       * Handle the event.
       *
       * @param  UserWasCreated  $event
       * @return void
       */
  
      public function handle( UserWasCreated $event )
      {
              $data = array('password' =&gt; $event-&gt;user-&gt;password, 'username' =&gt; $event-&gt;user-&gt;username, 'email' =&gt; $event-&gt;user-&gt;email);
  
              $this-&gt;mailer-&gt;queue('emails.user_created', $data, function($message) use ($data)
              {
                      $message-&gt;to($data['email'])-&gt;subject(Lang::get('notifications.USER_CREATED_EMAIL_SUBJECT', [], $event-&gt;user-&gt;lang));
              });
       }
  }
  </code></pre>
  
  <p>Here is the error and stack trace:</p>
  
  <pre><code>[2016-03-21 00:57:57] local.ERROR: exception 'ErrorException' with message 'Undefined variable: event' in /Users/John/Sites/AppBackEnd/vendor/jeremeamia/SuperClosure/src/SerializableClosure.php(210) : eval()'d code:2
  
  Stack trace:
  #0 /Users/John/Sites/AppBackEnd/vendor/jeremeamia/SuperClosure/src/SerializableClosure.php(210) : eval()'d code(2): Illuminate\Foundation\Bootstrap\HandleExceptions-&gt;handleError(8, 'Undefined varia...', '/Users/John...', 2, Array)
  #1 [internal function]: {closure}(Object(Illuminate\Mail\Message))
  #2 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(401): call_user_func(Object(Closure), Object(Illuminate\Mail\Message))
  #3 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(165): Illuminate\Mail\Mailer-&gt;callMessageBuilder(Object(Closure), Object(Illuminate\Mail\Message))
  #4 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Mail/Mailer.php(278): Illuminate\Mail\Mailer-&gt;send('emails.user_cre...', Array, Object(Closure))
  #5 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Queue/Jobs/Job.php(129): Illuminate\Mail\Mailer-&gt;handleQueuedMessage(Object(Illuminate\Queue\Jobs\RedisJob), Array)
  #6 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Queue/Jobs/RedisJob.php(50): Illuminate\Queue\Jobs\Job-&gt;resolveAndFire(Array)
  #7 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(210): Illuminate\Queue\Jobs\RedisJob-&gt;fire()
  #8 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(159): Illuminate\Queue\Worker-&gt;process('redis', Object(Illuminate\Queue\Jobs\RedisJob), '0', '0')
  #9 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(110): Illuminate\Queue\Worker-&gt;pop('', 'default', '0', '3', '0')
  #10 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(72): Illuminate\Queue\Console\WorkCommand-&gt;runWorker('', 'default', '0', '128', false)
  #11 [internal function]: Illuminate\Queue\Console\WorkCommand-&gt;fire()
  #12 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Container/Container.php(507): call_user_func_array(Array, Array)
  #13 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Console/Command.php(169): Illuminate\Container\Container-&gt;call(Array)
  #14 /Users/John/Sites/AppBackEnd/vendor/symfony/console/Command/Command.php(256): Illuminate\Console\Command-&gt;execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #15 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Console/Command.php(155): Symfony\Component\Console\Command\Command-&gt;run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #16 /Users/John/Sites/AppBackEnd/vendor/symfony/console/Application.php(791): Illuminate\Console\Command-&gt;run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #17 /Users/John/Sites/AppBackEnd/vendor/symfony/console/Application.php(186): Symfony\Component\Console\Application-&gt;doRunCommand(Object(Illuminate\Queue\Console\WorkCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #18 /Users/John/Sites/AppBackEnd/vendor/symfony/console/Application.php(117): Symfony\Component\Console\Application-&gt;doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #19 /Users/John/Sites/AppBackEnd/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(107): Symfony\Component\Console\Application-&gt;run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #20 /Users/John/Sites/AppBackEnd/artisan(36): Illuminate\Foundation\Console\Kernel-&gt;handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
  #21 {main}  
  </code></pre>