Skip to content

Commit 80482f7

Browse files
committed
Moved form extensions into their directory
1 parent dc864fa commit 80482f7

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

src/Form/CollectionTypeExtension.php renamed to src/Form/Extension/CollectionTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* along with this program. If not, see <https://www.gnu.org/licenses/>.
4040
*/
4141

42-
namespace App\Form;
42+
namespace App\Form\Extension;
4343

4444
use Doctrine\Common\Collections\ArrayCollection;
4545
use Doctrine\Common\Collections\Collection;

src/Form/PasswordTypeExtension.php renamed to src/Form/Extension/PasswordTypeExtension.php

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,22 @@
11
<?php
2+
/*
3+
* This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony).
4+
*
5+
* Copyright (C) 2019 - 2025 Jan Böhmer (https://github.com/jbtronics)
6+
*
7+
* This program is free software: you can redistribute it and/or modify
8+
* it under the terms of the GNU Affero General Public License as published
9+
* by the Free Software Foundation, either version 3 of the License, or
10+
* (at your option) any later version.
11+
*
12+
* This program is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
* GNU Affero General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Affero General Public License
18+
* along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
*/
220

321
declare(strict_types=1);
422

@@ -20,7 +38,7 @@
2038
* You should have received a copy of the GNU Affero General Public License
2139
* along with this program. If not, see <https://www.gnu.org/licenses/>.
2240
*/
23-
namespace App\Form;
41+
namespace App\Form\Extension;
2442

2543
use Symfony\Component\Form\AbstractTypeExtension;
2644
use Symfony\Component\Form\Extension\Core\Type\PasswordType;

src/Form/SelectTypeOrderExtension.php renamed to src/Form/Extension/SelectTypeOrderExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
declare(strict_types=1);
2222

2323

24-
namespace App\Form;
24+
namespace App\Form\Extension;
2525

2626
use Symfony\Component\Form\AbstractTypeExtension;
2727
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
@@ -57,4 +57,4 @@ public function buildView(FormView $view, FormInterface $form, array $options):
5757
$view->vars['attr']['data-ordered-value'] = json_encode($form->getViewData(), JSON_THROW_ON_ERROR);
5858
}
5959
}
60-
}
60+
}

0 commit comments

Comments
 (0)