- Added a new ActionLog middleware to catch every modifying request and save the changes made and the user who did. - Added a new RequestLog to catch every request made whenever required.
20 lines
461 B
PHP
20 lines
461 B
PHP
<?php
|
|
|
|
namespace Lean\Api\Lib;
|
|
|
|
use Lean\Api\Factory\MessageFactoryInterface;
|
|
use Lean\LanguageHandler;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Ulmus\Entity\EntityInterface;
|
|
|
|
class DeleteFormContext extends FormContext
|
|
{
|
|
public function valid(? EntityInterface $entity = null) : bool
|
|
{
|
|
if ( $entity === null ) {
|
|
$this->pushErrorMessage('lean.api.form.delete.error.entity');
|
|
}
|
|
|
|
return parent::valid();
|
|
}
|
|
} |