mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-23 22:34:50 +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\BootableExtensionInterface;
|
||||||
use Joomla\CMS\Extension\MVCComponent;
|
use Joomla\CMS\Extension\MVCComponent;
|
||||||
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
|
use Joomla\CMS\HTML\HTMLRegistryAwareTrait;
|
||||||
|
use Joomla\CMS\Plugin\PluginHelper;
|
||||||
use Psr\Container\ContainerInterface;
|
use Psr\Container\ContainerInterface;
|
||||||
use Webmasterskaya\Component\OauthServer\Administrator\Helper\ComponentHelper;
|
use Webmasterskaya\Component\OauthServer\Administrator\Helper\ComponentHelper;
|
||||||
|
|
||||||
@ -41,5 +42,7 @@ class Component extends MVCComponent implements
|
|||||||
public function boot(ContainerInterface $container): void
|
public function boot(ContainerInterface $container): void
|
||||||
{
|
{
|
||||||
ComponentHelper::registerComponentDependencies();
|
ComponentHelper::registerComponentDependencies();
|
||||||
|
|
||||||
|
PluginHelper::importPlugin('oauthserver');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
namespace Webmasterskaya\Component\OauthServer\Site\Repository;
|
namespace Webmasterskaya\Component\OauthServer\Site\Repository;
|
||||||
|
|
||||||
use Joomla\CMS\Plugin\PluginHelper;
|
|
||||||
use Joomla\Event\DispatcherAwareInterface;
|
use Joomla\Event\DispatcherAwareInterface;
|
||||||
use Joomla\Event\DispatcherAwareTrait;
|
use Joomla\Event\DispatcherAwareTrait;
|
||||||
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||||||
@ -69,8 +68,6 @@ class ScopeRepository implements ScopeRepositoryInterface, DispatcherAwareInterf
|
|||||||
|
|
||||||
$scopes = $this->setupScopes($client, array_values($scopes));
|
$scopes = $this->setupScopes($client, array_values($scopes));
|
||||||
|
|
||||||
PluginHelper::importPlugin('oauthserver');
|
|
||||||
|
|
||||||
$event = new ScopeResolveEvent(
|
$event = new ScopeResolveEvent(
|
||||||
'onScopeResolve',
|
'onScopeResolve',
|
||||||
[
|
[
|
||||||
|
Loading…
Reference in New Issue
Block a user