Breaking: #100224 - MfaViewType migrated to backed enum
See forge#100224
Description
The class \TYPO3\
has been
migrated to a native PHP backed enum.
Impact
Since Mfa
is no longer a class, the existing class constants
are no longer available, but are enum instances instead.
In addition, it's not possible to instantiate the class anymore or call
the equals
method.
The \TYPO3\
, which
all MFA providers need to implement, does now require the third argument
$type
of the handle
method to be a Mfa
instead of a string
.
Affected installations
All installations directly using the class constants, instantiating the
class or calling the equals
method.
All extensions with custom MFA providers, which therefore implement the
handle
method.
Migration
To access the string representation of a Mfa
, use the
corresponding value
property, e.g.
\TYPO3\
or on a
variable, use $type->value
.
Replace class instantiation by \TYPO3\
.
Adjust your MFA providers handle
method to match the interface:
public function handleRequest(
ServerRequestInterface $request,
MfaProviderPropertyManager $propertyManager,
MfaViewType $type
): ResponseInterface;