added 2.0.9 listener
This commit is contained in:
		
							
								
								
									
										29
									
								
								app/Listeners/Update/V20/Version209.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								app/Listeners/Update/V20/Version209.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,29 @@
 | 
				
			|||||||
 | 
					<?php
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace App\Listeners\Update\V20;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					use App\Abstracts\Listeners\Update as Listener;
 | 
				
			||||||
 | 
					use App\Events\Install\UpdateFinished as Event;
 | 
				
			||||||
 | 
					use Illuminate\Support\Facades\Artisan;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					class Version209 extends Listener
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
					    const ALIAS = 'core';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    const VERSION = '2.0.9';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    /**
 | 
				
			||||||
 | 
					     * Handle the event.
 | 
				
			||||||
 | 
					     *
 | 
				
			||||||
 | 
					     * @param  $event
 | 
				
			||||||
 | 
					     * @return void
 | 
				
			||||||
 | 
					     */
 | 
				
			||||||
 | 
					    public function handle(Event $event)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        if ($this->skipThisUpdate($event)) {
 | 
				
			||||||
 | 
					            return;
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        Artisan::call('view:clear');
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
@@ -19,6 +19,7 @@ class Event extends Provider
 | 
				
			|||||||
            'App\Listeners\Update\V20\Version205',
 | 
					            'App\Listeners\Update\V20\Version205',
 | 
				
			||||||
            'App\Listeners\Update\V20\Version207',
 | 
					            'App\Listeners\Update\V20\Version207',
 | 
				
			||||||
            'App\Listeners\Update\V20\Version208',
 | 
					            'App\Listeners\Update\V20\Version208',
 | 
				
			||||||
 | 
					            'App\Listeners\Update\V20\Version209',
 | 
				
			||||||
        ],
 | 
					        ],
 | 
				
			||||||
        'Illuminate\Auth\Events\Login' => [
 | 
					        'Illuminate\Auth\Events\Login' => [
 | 
				
			||||||
            'App\Listeners\Auth\Login',
 | 
					            'App\Listeners\Auth\Login',
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user