mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 22:53:49 +00:00
22 lines
511 B
PHP
22 lines
511 B
PHP
<?php
|
|
|
|
namespace Chill\PersonBundle\Household;
|
|
|
|
use Chill\PersonBundle\Household\MembersEditor;
|
|
use Chill\PersonBundle\Entity\Household\Household;
|
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
|
|
|
|
|
class MembersEditorFactory
|
|
{
|
|
public function __construct(ValidatorInterface $validator)
|
|
{
|
|
$this->validator = $validator;
|
|
}
|
|
|
|
public function createEditor(?Household $household = null): MembersEditor
|
|
{
|
|
return new MembersEditor($this->validator, $household);
|
|
}
|
|
}
|