2019-02-03 16:32:57 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Domain\FormManagement;
|
|
|
|
|
|
|
|
use Symfony\Component\Form\FormBuilderInterface;
|
|
|
|
use App\Domain\RequestManagement\Action\RequestedActionServiceInterface;
|
2019-02-12 16:40:01 +01:00
|
|
|
use Symfony\Component\Form\FormFactoryInterface;
|
2019-02-03 16:32:57 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
|
|
|
final class RequestedActionFormBuilderService extends RequestedActionFormBuilder implements RequestedActionFormBuilderServiceInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var RequestedActionServiceInterface
|
|
|
|
*/
|
|
|
|
private $requestedActionService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*
|
|
|
|
* @see \App\Domain\FormManagement\RequestedActionFormBuilder::__construct()
|
|
|
|
*/
|
2019-02-12 16:40:01 +01:00
|
|
|
public function __construct(FormFactoryInterface $formFactory, FormClassNameServiceInterface $formClassNameService, RequestedActionServiceInterface $requestedActionService)
|
2019-02-03 16:32:57 +01:00
|
|
|
{
|
2019-02-12 16:40:01 +01:00
|
|
|
parent::__construct($formFactory, $formClassNameService);
|
2019-02-03 16:32:57 +01:00
|
|
|
$this->requestedActionService = $requestedActionService;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* {@inheritdoc}
|
|
|
|
*
|
|
|
|
* @see \App\Domain\FormManagement\RequestedActionFormBuilderServiceInterface::createByRequestedActionService()
|
|
|
|
*/
|
|
|
|
public function createByService(): FormBuilderInterface
|
|
|
|
{
|
|
|
|
return parent::create($this->requestedActionService);
|
|
|
|
}
|
|
|
|
}
|