send system notification on period confirmation

This commit is contained in:
2021-12-30 02:10:35 +01:00
parent 7bc4ad9779
commit 5bf1b9d8bd
12 changed files with 233 additions and 23 deletions

View File

@@ -1,5 +1,14 @@
<?php
/**
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Chill\MainBundle\Notification;
use Chill\MainBundle\Entity\Notification;
@@ -8,14 +17,14 @@ use Chill\MainBundle\Repository\NotificationRepository;
use Symfony\Component\Security\Core\Security;
/**
* Helps to find if a notification exist for a given entity
* Helps to find if a notification exist for a given entity.
*/
class NotificationPresence
{
private Security $security;
private NotificationRepository $notificationRepository;
private Security $security;
public function __construct(Security $security, NotificationRepository $notificationRepository)
{
$this->security = $security;