mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
get notification also for UserInterface
This will allow notification for admin
This commit is contained in:
parent
42f17f11e0
commit
6fc9fa9833
@ -17,6 +17,7 @@
|
||||
*/
|
||||
namespace Chill\MainBundle\Templating\UI;
|
||||
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
|
||||
/**
|
||||
@ -37,7 +38,7 @@ class CountNotificationUser
|
||||
$this->counters[] = $counter;
|
||||
}
|
||||
|
||||
public function getSumNotification(User $u): int
|
||||
public function getSumNotification(UserInterface $u): int
|
||||
{
|
||||
$sum = 0;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
*/
|
||||
namespace Chill\MainBundle\Templating\UI;
|
||||
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
|
||||
/**
|
||||
*
|
||||
@ -28,5 +28,5 @@ interface NotificationCounterInterface
|
||||
/**
|
||||
* Add a number of notification
|
||||
*/
|
||||
public function addNotification(User $u): int;
|
||||
public function addNotification(UserInterface $u): int;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user