• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

systemsdk / docker-symfony-api / #76

pending completion
#76

push

web-flow
Bump symfony/security-bundle from 6.2.3 to 6.2.6

Bumps [symfony/security-bundle](https://github.com/symfony/security-bundle) from 6.2.3 to 6.2.6.
- [Release notes](https://github.com/symfony/security-bundle/releases)
- [Changelog](https://github.com/symfony/security-bundle/blob/6.2/CHANGELOG.md)
- [Commits](https://github.com/symfony/security-bundle/compare/v6.2.3...v6.2.6)

---
updated-dependencies:
- dependency-name: symfony/security-bundle
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

1470 of 2656 relevant lines covered (55.35%)

23.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/ApiKey/Transport/Form/Type/Console/ApiKeyType.php
1
<?php
2

3
declare(strict_types=1);
4

5
namespace App\ApiKey\Transport\Form\Type\Console;
6

7
use App\ApiKey\Application\DTO\ApiKey\ApiKey;
8
use App\General\Transport\Form\Type\Interfaces\FormTypeLabelInterface;
9
use App\General\Transport\Form\Type\Traits\AddBasicFieldToForm;
10
use App\User\Application\Resource\UserGroupResource;
11
use App\User\Transport\Form\DataTransformer\UserGroupTransformer;
12
use App\User\Transport\Form\Type\Traits\UserGroupChoices;
13
use Symfony\Component\Form\AbstractType;
14
use Symfony\Component\Form\Extension\Core\Type;
15
use Symfony\Component\Form\FormBuilderInterface;
16
use Symfony\Component\OptionsResolver\Exception\AccessException;
17
use Symfony\Component\OptionsResolver\OptionsResolver;
18
use Throwable;
19

20
/**
21
 * Class ApiKeyType
22
 *
23
 * @package App\ApiKey
24
 */
25
class ApiKeyType extends AbstractType
26
{
27
    use AddBasicFieldToForm;
28
    use UserGroupChoices;
29

30
    /**
31
     * Base form fields
32
     *
33
     * @var array<int, array<int, mixed>>
34
     */
35
    private static array $formFields = [
36
        [
37
            'description',
38
            Type\TextType::class,
39
            [
40
                FormTypeLabelInterface::LABEL => 'Description',
41
                FormTypeLabelInterface::REQUIRED => true,
42
                FormTypeLabelInterface::EMPTY_DATA => '',
43
            ],
44
        ],
45
    ];
46

47
    public function __construct(
48
        private readonly UserGroupResource $userGroupResource,
49
        private readonly UserGroupTransformer $userGroupTransformer,
50
    ) {
51
    }
×
52

53
    /**
54
     * {@inheritdoc}
55
     *
56
     * @throws Throwable
57
     */
58
    public function buildForm(FormBuilderInterface $builder, array $options): void
59
    {
60
        parent::buildForm($builder, $options);
×
61

62
        $this->addBasicFieldToForm($builder, self::$formFields);
×
63

64
        $builder
×
65
            ->add(
×
66
                'userGroups',
×
67
                Type\ChoiceType::class,
×
68
                [
×
69
                    'choices' => $this->getUserGroupChoices(),
×
70
                    'multiple' => true,
×
71
                    'required' => true,
×
72
                    'empty_data' => '',
×
73
                ],
×
74
            );
×
75

76
        $builder->get('userGroups')->addModelTransformer($this->userGroupTransformer);
×
77
    }
78

79
    /**
80
     * Configures the options for this type.
81
     *
82
     * @throws AccessException
83
     */
84
    public function configureOptions(OptionsResolver $resolver): void
85
    {
86
        parent::configureOptions($resolver);
×
87

88
        $resolver->setDefaults([
×
89
            'data_class' => ApiKey::class,
×
90
        ]);
×
91
    }
92
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc