mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-26 01:23:49 +00:00
DX: apply rector rules up to php8.0
This commit is contained in:
@@ -31,29 +31,16 @@ class ReportSearch extends AbstractSearch implements ContainerAwareInterface
|
||||
{
|
||||
use \Symfony\Component\DependencyInjection\ContainerAwareTrait;
|
||||
|
||||
/**
|
||||
* @var EntityManagerInterface
|
||||
*/
|
||||
private $em;
|
||||
|
||||
/**
|
||||
* @var AuthorizationHelper
|
||||
*/
|
||||
private $helper;
|
||||
|
||||
/**
|
||||
* @var \Chill\MainBundle\Entity\User
|
||||
*/
|
||||
private $user;
|
||||
|
||||
public function __construct(
|
||||
EntityManagerInterface $em,
|
||||
AuthorizationHelper $helper,
|
||||
private EntityManagerInterface $em,
|
||||
private AuthorizationHelper $helper,
|
||||
TokenStorageInterface $tokenStorage
|
||||
) {
|
||||
$this->em = $em;
|
||||
$this->helper = $helper;
|
||||
|
||||
if (!$tokenStorage->getToken()->getUser() instanceof \Chill\MainBundle\Entity\User) {
|
||||
throw new RuntimeException('an user must be associated with token');
|
||||
}
|
||||
|
Reference in New Issue
Block a user