import plugins on component boot

This commit is contained in:
Artem Vasilev 2024-03-14 22:03:41 +03:00
parent 6876640920
commit aeffcc47ee
2 changed files with 4 additions and 4 deletions

View File

@ -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');
}
}

View File

@ -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,8 +68,6 @@ class ScopeRepository implements ScopeRepositoryInterface, DispatcherAwareInterf
$scopes = $this->setupScopes($client, array_values($scopes));
PluginHelper::importPlugin('oauthserver');
$event = new ScopeResolveEvent(
'onScopeResolve',
[