mirror of
				https://github.com/Mibew/title-notification-plugin.git
				synced 2025-11-04 12:25:11 +03:00 
			
		
		
		
	Move EventDispatcher class to a separate namespace
This commit is contained in:
		
							parent
							
								
									04e26a16c3
								
							
						
					
					
						commit
						d052c6eb03
					
				@ -23,6 +23,7 @@
 | 
			
		||||
 | 
			
		||||
namespace Mibew\Mibew\Plugin\TitleNotification;
 | 
			
		||||
 | 
			
		||||
use Mibew\EventDispatcher\EventDispatcher;
 | 
			
		||||
use Symfony\Component\HttpFoundation\Request;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@ -90,7 +91,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
 | 
			
		||||
    public function run()
 | 
			
		||||
    {
 | 
			
		||||
        // Attach CSS and JS files of the plugin to chat window.
 | 
			
		||||
        $dispatcher = \Mibew\EventDispatcher::getInstance();
 | 
			
		||||
        $dispatcher = EventDispatcher::getInstance();
 | 
			
		||||
        $dispatcher->attachListener('pageAddJS', $this, 'attachJsFiles');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user