Skip to content

Commit

Permalink
correction of code of supportClass
Browse files Browse the repository at this point in the history
  • Loading branch information
mhetru committed Mar 1, 2020
1 parent 8f4c30f commit f57883e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Services/UidUserProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ public function refreshUser(UserInterface $user) {
}

public function supportsClass($class) {
return $class === 'L3\Bundle\UidLdapBundle\Entity\UidUser';
$version_php = phpversion();
$version_php_float = floatval($version_php);
if ($version_php_float >= 5.5) {
return UidUser::class === $class;
} else {
return $class === 'L3\Bundle\UidUserBundle\Entity\UidUser';
}
}
}

0 comments on commit f57883e

Please sign in to comment.