luxletter icon indicating copy to clipboard operation
luxletter copied to clipboard

Move lux usage in luxletterlink to signal

Open georgringer opened this issue 2 years ago • 1 comments

The LuxletterLink used ext lux. Even though there is a guard clause to check if the extension is installed, the code should be moved to the signal right above.

protected function luxIdentification(Link $link): void
    {
        $identification = true;
        $this->signalDispatch(__CLASS__, __FUNCTION__, [&$identification, $link]);
        if (ExtensionUtility::isLuxAvailable('7.0.0') && $identification === true) {
            CookieUtility::setCookie('luxletterlinkhash', $link->getHash());
        }
    }

georgringer avatar Aug 29 '21 07:08 georgringer