24 lines
604 B
PHP
24 lines
604 B
PHP
<?php
|
|
namespace App\Form;
|
|
|
|
use App\Config;
|
|
use App\Entity;
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
use Symfony\Component\Serializer\Serializer;
|
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
|
|
|
class ApiKeyForm extends EntityForm
|
|
{
|
|
public function __construct(
|
|
EntityManagerInterface $em,
|
|
Serializer $serializer,
|
|
ValidatorInterface $validator,
|
|
Config $config
|
|
) {
|
|
$form_config = $config->get('forms/api_key');
|
|
parent::__construct($em, $serializer, $validator, $form_config);
|
|
|
|
$this->entityClass = Entity\ApiKey::class;
|
|
}
|
|
}
|