Skip to content

Commit 8a2b584

Browse files
OskarStarkxabbuh
authored andcommittedJan 16, 2024
[Filesystem][Finder][Form] Use CPP
1 parent 2edb77e commit 8a2b584

File tree

67 files changed

+299
-454
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+299
-454
lines changed
 

‎AbstractRendererEngine.php

+3-5
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface, Re
2525
*/
2626
public const CACHE_KEY_VAR = 'cache_key';
2727

28-
protected array $defaultThemes;
29-
3028
/**
3129
* @var array[]
3230
*/
@@ -53,9 +51,9 @@ abstract class AbstractRendererEngine implements FormRendererEngineInterface, Re
5351
* @param array $defaultThemes The default themes. The type of these
5452
* themes is open to the implementation.
5553
*/
56-
public function __construct(array $defaultThemes = [])
57-
{
58-
$this->defaultThemes = $defaultThemes;
54+
public function __construct(
55+
protected array $defaultThemes = [],
56+
) {
5957
}
6058

6159
public function setTheme(FormView $view, mixed $themes, bool $useDefaultThemes = true): void

‎Button.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@
2626
class Button implements \IteratorAggregate, FormInterface
2727
{
2828
private ?FormInterface $parent = null;
29-
private FormConfigInterface $config;
3029
private bool $submitted = false;
3130

3231
/**
3332
* Creates a new button from a form configuration.
3433
*/
35-
public function __construct(FormConfigInterface $config)
36-
{
37-
$this->config = $config;
34+
public function __construct(
35+
private FormConfigInterface $config,
36+
) {
3837
}
3938

4039
/**

0 commit comments

Comments
 (0)
Please sign in to comment.