mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Merge branch 'notifications_fixtures' into 'master'
LoadNotifications using DependentFixtureInterface See merge request Chill-Projet/chill-bundles!83
This commit is contained in:
commit
38712de462
@ -3,24 +3,18 @@
|
|||||||
namespace Chill\ActivityBundle\DataFixtures\ORM;
|
namespace Chill\ActivityBundle\DataFixtures\ORM;
|
||||||
|
|
||||||
use Doctrine\Common\DataFixtures\AbstractFixture;
|
use Doctrine\Common\DataFixtures\AbstractFixture;
|
||||||
use Doctrine\Common\DataFixtures\OrderedFixtureInterface;
|
use Doctrine\Common\DataFixtures\DependentFixtureInterface;
|
||||||
use Doctrine\Persistence\ObjectManager;
|
|
||||||
use Symfony\Component\Intl\Intl;
|
|
||||||
use Chill\MainBundle\Entity\Notification;
|
|
||||||
use Chill\ActivityBundle\Entity\Activity;
|
use Chill\ActivityBundle\Entity\Activity;
|
||||||
use Chill\MainBundle\DataFixtures\ORM\LoadAbstractNotificationsTrait;
|
use Chill\MainBundle\DataFixtures\ORM\LoadAbstractNotificationsTrait;
|
||||||
|
use Chill\ActivityBundle\DataFixtures\ORM\LoadActivity;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load notififications into database
|
* Load notififications into database
|
||||||
*/
|
*/
|
||||||
class LoadActivityNotifications extends AbstractFixture implements OrderedFixtureInterface
|
class LoadActivityNotifications extends AbstractFixture implements DependentFixtureInterface
|
||||||
{
|
{
|
||||||
use LoadAbstractNotificationsTrait;
|
use LoadAbstractNotificationsTrait;
|
||||||
|
|
||||||
public function getOrder() {
|
|
||||||
return 16500;
|
|
||||||
}
|
|
||||||
|
|
||||||
public $notifs = [
|
public $notifs = [
|
||||||
[
|
[
|
||||||
'message' => 'Hello !',
|
'message' => 'Hello !',
|
||||||
@ -35,5 +29,10 @@ class LoadActivityNotifications extends AbstractFixture implements OrderedFixtur
|
|||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
|
public function getDependencies()
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
LoadActivity::class,
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user