namespace Civi\Authx;
+use Civi\Core\Service\AutoService;
use Civi\Crypto\Exception\CryptoException;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
/**
* This class is a small collection of common/default credential checkers.
+ *
+ * @service authx.credentials
*/
-class CheckCredential implements EventSubscriberInterface {
+class CheckCredential extends AutoService implements EventSubscriberInterface {
/**
* Listener priority for handling credential format of 'Basic' with
use CRM_Authx_ExtensionUtil as E;
// phpcs:enable
-
-function authx_civicrm_container(\Symfony\Component\DependencyInjection\ContainerBuilder $container) {
- $container->register('authx_credentials', '\Civi\Authx\CheckCredential')
- ->addTag('kernel.event_subscriber')
- ->setPublic(TRUE);
-}
-
/**
* Perform a system login.
*