mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-10 22:37:28 +01:00
40 lines
1.2 KiB
PHP
40 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Infinito\Domain\FormManagement;
|
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
use Infinito\Domain\RequestManagement\Action\RequestedActionServiceInterface;
|
|
use Symfony\Component\Form\FormFactoryInterface;
|
|
|
|
/**
|
|
* @author kevinfrantz
|
|
*/
|
|
final class RequestedActionFormBuilderService extends RequestedActionFormBuilder implements RequestedActionFormBuilderServiceInterface
|
|
{
|
|
/**
|
|
* @var RequestedActionServiceInterface
|
|
*/
|
|
private $requestedActionService;
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @see \Infinito\Domain\FormManagement\RequestedActionFormBuilder::__construct()
|
|
*/
|
|
public function __construct(FormFactoryInterface $formFactory, FormClassNameServiceInterface $formClassNameService, RequestedActionServiceInterface $requestedActionService)
|
|
{
|
|
parent::__construct($formFactory, $formClassNameService);
|
|
$this->requestedActionService = $requestedActionService;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*
|
|
* @see \Infinito\Domain\FormManagement\RequestedActionFormBuilderServiceInterface::createByRequestedActionService()
|
|
*/
|
|
public function createByService(): FormBuilderInterface
|
|
{
|
|
return parent::create($this->requestedActionService);
|
|
}
|
|
}
|