Skip to content

Commit ceb472a

Browse files
committed
ContainerBuilder: renamed $classes to $classList
1 parent c0258ca commit ceb472a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/DI/ContainerBuilder.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ContainerBuilder
3737
private $aliases = [];
3838

3939
/** @var array for auto-wiring */
40-
private $classes = FALSE;
40+
private $classList = FALSE;
4141

4242
/** @var string[] of classes excluded from auto-wiring */
4343
private $excludedClasses = [];
@@ -259,11 +259,11 @@ public function findByTag($tag)
259259
private function getClassList()
260260
{
261261
static $prev;
262-
if ($this->classes !== FALSE && $prev !== serialize($this->definitions)) {
262+
if ($this->classList !== FALSE && $prev !== serialize($this->definitions)) {
263263
$this->prepareClassList();
264264
$prev = serialize($this->definitions);
265265
}
266-
return $this->classes ?: [];
266+
return $this->classList ?: [];
267267
}
268268

269269

@@ -300,7 +300,7 @@ public function prepareClassList()
300300
unset($this->definitions[self::THIS_CONTAINER]);
301301
$this->addDefinition(self::THIS_CONTAINER)->setClass(Container::class);
302302

303-
$this->classes = FALSE;
303+
$this->classList = FALSE;
304304

305305
foreach ($this->definitions as $name => $def) {
306306
// prepare generated factories
@@ -346,16 +346,16 @@ public function prepareClassList()
346346
}
347347
}
348348

349-
$this->classes = [];
349+
$this->classList = [];
350350
foreach ($this->definitions as $name => $def) {
351351
if ($class = $def->getImplement() ?: $def->getClass()) {
352352
foreach (class_parents($class) + class_implements($class) + [$class] as $parent) {
353-
$this->classes[$parent][$def->isAutowired() && empty($excludedClasses[$parent])][] = (string) $name;
353+
$this->classList[$parent][$def->isAutowired() && empty($excludedClasses[$parent])][] = (string) $name;
354354
}
355355
}
356356
}
357357

358-
foreach ($this->classes as $class => $foo) {
358+
foreach ($this->classList as $class => $foo) {
359359
$this->addDependency((string) (new ReflectionClass($class))->getFileName());
360360
}
361361
}
@@ -575,7 +575,7 @@ public function generateClasses($className = NULL, $parentName = NULL)
575575

576576
$meta = $containerClass->addProperty('meta')
577577
->setVisibility('protected')
578-
->setValue([Container::TYPES => $this->classes]);
578+
->setValue([Container::TYPES => $this->classList]);
579579

580580
foreach ($definitions as $name => $def) {
581581
$meta->value[Container::SERVICES][$name] = $def->getClass() ?: NULL;
@@ -876,7 +876,7 @@ public function getServiceName($arg)
876876
$service = $this->currentService;
877877
}
878878
if (Strings::contains($service, '\\')) {
879-
if ($this->classes === FALSE) { // may be disabled by prepareClassList
879+
if ($this->classList === FALSE) { // may be disabled by prepareClassList
880880
return $service;
881881
}
882882
$res = $this->getByType($service);

0 commit comments

Comments
 (0)