mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Add delivery results to application settings page
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of phrasea-4.1.
|
||||
*
|
||||
* (c) Alchemy <info@alchemy.fr>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Alchemy\Phrasea\Model\Repositories;
|
||||
|
||||
use Alchemy\Phrasea\Model\Entities\WebhookEventPayload;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
|
||||
class WebhookEventPayloadRepository extends EntityRepository
|
||||
{
|
||||
|
||||
public function save(WebhookEventPayload $payload)
|
||||
{
|
||||
$this->_em->persist($payload);
|
||||
$this->_em->persist($payload->getDelivery());
|
||||
|
||||
$this->_em->flush([ $payload, $payload->getDelivery() ]);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user