mirror of
				https://github.com/webmasterskaya/joomla-oauth-server.git
				synced 2025-10-31 11:53:22 +03:00 
			
		
		
		
	import plugins on component boot
This commit is contained in:
		
							parent
							
								
									6876640920
								
							
						
					
					
						commit
						aeffcc47ee
					
				| @ -16,6 +16,7 @@ use Joomla\CMS\Component\Router\RouterServiceTrait; | ||||
| use Joomla\CMS\Extension\BootableExtensionInterface; | ||||
| use Joomla\CMS\Extension\MVCComponent; | ||||
| use Joomla\CMS\HTML\HTMLRegistryAwareTrait; | ||||
| use Joomla\CMS\Plugin\PluginHelper; | ||||
| use Psr\Container\ContainerInterface; | ||||
| use Webmasterskaya\Component\OauthServer\Administrator\Helper\ComponentHelper; | ||||
| 
 | ||||
| @ -41,5 +42,7 @@ class Component extends MVCComponent implements | ||||
|     public function boot(ContainerInterface $container): void | ||||
|     { | ||||
|         ComponentHelper::registerComponentDependencies(); | ||||
| 
 | ||||
|         PluginHelper::importPlugin('oauthserver'); | ||||
|     } | ||||
| } | ||||
|  | ||||
| @ -9,7 +9,6 @@ | ||||
| 
 | ||||
| namespace Webmasterskaya\Component\OauthServer\Site\Repository; | ||||
| 
 | ||||
| use Joomla\CMS\Plugin\PluginHelper; | ||||
| use Joomla\Event\DispatcherAwareInterface; | ||||
| use Joomla\Event\DispatcherAwareTrait; | ||||
| use League\OAuth2\Server\Entities\ClientEntityInterface; | ||||
| @ -69,13 +68,11 @@ class ScopeRepository implements ScopeRepositoryInterface, DispatcherAwareInterf | ||||
| 
 | ||||
|         $scopes = $this->setupScopes($client, array_values($scopes)); | ||||
| 
 | ||||
|         PluginHelper::importPlugin('oauthserver'); | ||||
| 
 | ||||
|         $event = new ScopeResolveEvent( | ||||
|             'onScopeResolve', | ||||
|             [ | ||||
|                 'scopes' => $scopes, | ||||
|                 'grant' => $grantType, | ||||
|                 'grant'  => $grantType, | ||||
|                 'client' => $client, | ||||
|                 'userId' => $userIdentifier | ||||
|             ] | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user