mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -33,13 +33,8 @@ use Symfony\Component\Security\Core\Security;
|
|||
*/
|
||||
final class SetUserTimezoneSubscriber implements EventSubscriberInterface
|
||||
{
|
||||
private string $default_timezone;
|
||||
private \Symfony\Bundle\SecurityBundle\Security $security;
|
||||
|
||||
public function __construct(string $timezone, \Symfony\Bundle\SecurityBundle\Security $security)
|
||||
public function __construct(private readonly string $default_timezone, private readonly \Symfony\Bundle\SecurityBundle\Security $security)
|
||||
{
|
||||
$this->default_timezone = $timezone;
|
||||
$this->security = $security;
|
||||
}
|
||||
|
||||
public function setTimeZone(ControllerEvent $event): void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue