1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00
wallabag/src/Controller/AbstractController.php

21 lines
451 B
PHP
Raw Normal View History

2024-01-01 19:51:22 +01:00
<?php
namespace Wallabag\CoreBundle\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController as BaseAbstractController;
2023-12-30 23:32:36 +01:00
use Wallabag\CoreBundle\Entity\User;
2024-01-01 19:51:22 +01:00
abstract class AbstractController extends BaseAbstractController
{
/**
* @return User|null
*/
protected function getUser()
{
$user = parent::getUser();
\assert(null === $user || $user instanceof User);
return $user;
}
}