28 lines
		
	
	
		
			818 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			818 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| defined('_JEXEC') or die;
 | |
| 
 | |
| use Joomla\CMS\Extension\PluginInterface;
 | |
| use Joomla\CMS\Plugin\PluginHelper;
 | |
| use Joomla\DI\Container;
 | |
| use Joomla\DI\ServiceProviderInterface;
 | |
| use Joomla\Event\DispatcherInterface;
 | |
| use Joomla\Plugin\Quickicon\Jem\Extension\Jem;
 | |
| 
 | |
| return new class implements ServiceProviderInterface
 | |
| {
 | |
|     public function register(Container $container)
 | |
|     {
 | |
|         $container->set(
 | |
|             PluginInterface::class,
 | |
|             function (Container $container) {
 | |
|                 $plugin = new Jem(
 | |
|                     $container->get(DispatcherInterface::class),
 | |
|                     (array) PluginHelper::getPlugin('quickicon', 'jem')
 | |
|                 );
 | |
|                 $plugin->setApplication(\Joomla\CMS\Factory::getApplication());
 | |
| 
 | |
|                 return $plugin;
 | |
|             }
 | |
|         );
 | |
|     }
 | |
| }; |