refactor: private instead of protected where nothing relies on it, constructor promotion
Members (properties, methods, constants) become private when they are declared in the class itself, no parent class or interface declares them, no ancestor in packages/ uses them and the class has no subclass in packages/: 115 members in 36 files. Extbase domain objects keep protected properties, AbstractDomainObject sets them from the parent class. With the properties private, Rector's constructor promotion now also applies to the controllers and services that still assigned their dependencies by hand (26 files). Checked locally: frontend crawl (~1,900 URLs) and the backchannel APIs render the same as before. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
b51fa4ddad
commit
9347112d6b
38 files changed
+140
-462
No files matched your search
@@ -10,7 +10,7 @@ class ContainerViewHelper extends AbstractViewHelper
|
||||
/**
|
||||
* @var int[]
|
||||
*/
|
||||
protected static $scale = [
|
||||
private static $scale = [
|
||||
'default' => 0,
|
||||
'small' => 8,
|
||||
'large' => 16,
|
||||
@@ -25,7 +25,7 @@ class ContainerViewHelper extends AbstractViewHelper
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected static $columnsWithoutContainers = [ 0, 1, 3 ];
|
||||
private static $columnsWithoutContainers = [ 0, 1, 3 ];
|
||||
|
||||
public function initializeArguments()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user