mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2026-10-30 09:12:09 +00:00
Renamed domain ActionManagement to Action
This commit is contained in:
1 parent
d2b0cba30b
commit
123df1147a
36 files changed
+112
-112
No files matched your search
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Infinito\Domain\Action\Delete;
|
||||
|
||||
use Infinito\Domain\Action\AbstractAction;
|
||||
|
||||
/**
|
||||
* @author kevinfrantz
|
||||
* Declare as not final as soon as you need it!
|
||||
*/
|
||||
final class DeleteAction extends AbstractAction
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \Infinito\Domain\Action\AbstractAction::isSecure()
|
||||
*/
|
||||
protected function isSecure(): bool
|
||||
{
|
||||
return $this->isSecure();
|
||||
}
|
||||
|
||||
/**
|
||||
* @todo Implement!
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \Infinito\Domain\Action\AbstractAction::isValid()
|
||||
*/
|
||||
protected function isValid(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*
|
||||
* @see \Infinito\Domain\Action\AbstractAction::proccess()
|
||||
*/
|
||||
protected function proccess()
|
||||
{
|
||||
$entityManager = $this->actionService->getEntityManager();
|
||||
$entity = $this->actionService->getRequestedAction()->getRequestedEntity()->getEntity();
|
||||
$entityManager->remove($entity);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user