set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Plugin( $dispatcher, (array) PluginHelper::getPlugin('system', 'oauthserver') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } };