addEncoder example

$availableHasher = Shopware()->Events()->filter(
            'Shopware_Components_Password_Manager_AddEncoder',
            [],
            ['subject' => $this]
        );

        $passwordManager = new Manager(
            $this->Application()->Config()
        );

        foreach ($availableHasher as $encoder) {
            $passwordManager->addEncoder($encoder);
        }

        return $passwordManager;
    }

    /** * This method registers shopware's default hash algorithm * * @return PasswordEncoderInterface[] */
    public function onAddEncoder(Enlight_Event_EventArgs $args): array
    {
Home | Imprint | This part of the site doesn't use cookies.