25 lines
953 B
PHP
25 lines
953 B
PHP
<?php
|
|
|
|
namespace %NAMESPACE%\Factory;
|
|
|
|
use Lean\Api\Factory\MessageFactoryInterface;
|
|
use Psr\Http\Message\ServerRequestInterface;
|
|
use Picea\Ui\Method\{ FormInterface, FormContextInterface };
|
|
use Storage\Session;
|
|
use Lean\LanguageHandler;
|
|
use Ulmus\Entity\EntityInterface;
|
|
use Ulmus\User\Entity\UserInterface;
|
|
use Ulmus\User\Lib\Authenticate;
|
|
|
|
interface FormFactoryInterface
|
|
{
|
|
/* public function __construct(ServerRequestInterface $request, Authenticate $authenticate, Session $session, LanguageHandler $languageHandler, MessageFactoryInterface $messageFactory,);
|
|
|
|
public function save(EntityInterface $entity): FormInterface;
|
|
|
|
public function saveContext(?ServerRequestInterface $request = null, ?string $formName = null): FormContextInterface;
|
|
|
|
public function delete(EntityInterface $entity): FormInterface;
|
|
|
|
public function deleteContext(?ServerRequestInterface $request = null, ?string $formName = null): FormContextInterface;*/
|
|
} |