mirror of
https://github.com/wallabag/wallabag.git
synced 2024-06-26 00:50:44 +00:00
This give us ability to use Entry ID to determine where to store images and it’s then more easy to remove them when we remove the entry.
27 lines
454 B
PHP
27 lines
454 B
PHP
<?php
|
|
|
|
namespace Wallabag\CoreBundle\Event;
|
|
|
|
use Symfony\Component\EventDispatcher\Event;
|
|
use Wallabag\CoreBundle\Entity\Entry;
|
|
|
|
/**
|
|
* This event is fired as soon as an entry is deleted.
|
|
*/
|
|
class EntryDeletedEvent extends Event
|
|
{
|
|
const NAME = 'entry.deleted';
|
|
|
|
protected $entry;
|
|
|
|
public function __construct(Entry $entry)
|
|
{
|
|
$this->entry = $entry;
|
|
}
|
|
|
|
public function getEntry()
|
|
{
|
|
return $this->entry;
|
|
}
|
|
}
|