mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-18 16:24:24 +00:00
44 lines
1.0 KiB
PHP
44 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace Chill\PersonBundle\DataFixtures\ORM;
|
|
|
|
use Doctrine\Common\DataFixtures\AbstractFixture;
|
|
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
|
|
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
|
use Chill\MainBundle\DataFixtures\ORM\LoadAbstractNotificationsTrait;
|
|
|
|
/**
|
|
* Load notififications into database
|
|
*/
|
|
class LoadAccompanyingPeriodNotifications extends AbstractFixture implements DependentFixtureInterface
|
|
{
|
|
use LoadAbstractNotificationsTrait;
|
|
|
|
public $notifs = [
|
|
[
|
|
'message' => 'Hello !',
|
|
'entityClass' => AccompanyingPeriod::class,
|
|
'entityRef' => null,
|
|
'sender' => 'center a_social',
|
|
'addressees' => [
|
|
'center a_social',
|
|
'center a_administrative',
|
|
'center a_direction',
|
|
'multi_center'
|
|
],
|
|
]
|
|
];
|
|
|
|
protected function getEntityRef()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public function getDependencies()
|
|
{
|
|
return [
|
|
LoadPeople::class,
|
|
];
|
|
}
|
|
}
|