"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Neos.Flow/Classes/ObjectManagement/Configuration/ConfigurationBuilder.php" between
flow-development-collection-5.2.1.tar.gz and flow-development-collection-5.2.2.tar.gz

About: TYPO3 Flow is a web application platform enabling developers creating fast, reliable and complex web solutions ("the next level of PHP programming"; old name "FLOW3").

ConfigurationBuilder.php  (flow-development-collection-5.2.1):ConfigurationBuilder.php  (flow-development-collection-5.2.2)
skipping to change at line 478 skipping to change at line 478
$this->logger->debug(sprintf('Could not autowire pro perty %s because the method parameter in %s() contained no class type hint.', $c lassName . '::' . $propertyName, $methodName)); $this->logger->debug(sprintf('Could not autowire pro perty %s because the method parameter in %s() contained no class type hint.', $c lassName . '::' . $propertyName, $methodName));
continue; continue;
} }
$properties[$propertyName] = new ConfigurationProperty($ propertyName, $methodParameter['class'], ConfigurationProperty::PROPERTY_TYPES_O BJECT); $properties[$propertyName] = new ConfigurationProperty($ propertyName, $methodParameter['class'], ConfigurationProperty::PROPERTY_TYPES_O BJECT);
} }
} }
} }
foreach ($this->reflectionService->getPropertyNamesByAnnotation($cla ssName, Inject::class) as $propertyName) { foreach ($this->reflectionService->getPropertyNamesByAnnotation($cla ssName, Inject::class) as $propertyName) {
if ($this->reflectionService->isPropertyPrivate($className, $pro pertyName)) { if ($this->reflectionService->isPropertyPrivate($className, $pro pertyName)) {
throw new ObjectException(sprintf('The property "%%s" in cla ss "%s" must not be private when annotated for injection.', $propertyName, $clas sName), 1328109641); throw new ObjectException(sprintf('The property "%s" in clas s "%s" must not be private when annotated for injection.', $propertyName, $class Name), 1328109641);
} }
if (!array_key_exists($propertyName, $properties)) { if (!array_key_exists($propertyName, $properties)) {
/** @var Inject $injectAnnotation */ /** @var Inject $injectAnnotation */
$injectAnnotation = $this->reflectionService->getPropertyAnn otation($className, $propertyName, Inject::class); $injectAnnotation = $this->reflectionService->getPropertyAnn otation($className, $propertyName, Inject::class);
$objectName = trim(implode('', $this->reflectionService->get PropertyTagValues($className, $propertyName, 'var')), ' \\'); $objectName = trim(implode('', $this->reflectionService->get PropertyTagValues($className, $propertyName, 'var')), ' \\');
$configurationProperty = new ConfigurationProperty($propert yName, $objectName, ConfigurationProperty::PROPERTY_TYPES_OBJECT, null, $injectA nnotation->lazy); $configurationProperty = new ConfigurationProperty($propert yName, $objectName, ConfigurationProperty::PROPERTY_TYPES_OBJECT, null, $injectA nnotation->lazy);
$properties[$propertyName] = $configurationProperty; $properties[$propertyName] = $configurationProperty;
} }
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)