Feature #70874
closedClassInfo::getIsInitializeable() is not reliable
0%
Description
As seen in e.g. https://github.com/TYPO3/TYPO3.CMS/blob/TYPO3_6-2/typo3/sysext/extbase/Classes/Object/Container/Container.php#L167 (Container::getInstanceInternal(), if($classInfo->getIsInitializeable() && is_callable(array($instance, 'initializeObject')))), calling $classInfo->getIsInitializeable() appears to not be enough to determine if $instance->initializeObject() can be called. This seems wrong by design.
Maybe ClassInfo::getIsInitializable() should take an instance as argument? Or should there be a public Container::getObjectIsInitializable($instance)? If the is_callable() call is necessary to avoid bugs, then there definitely needs to be an API method for it.
Updated by Helmut Hummel about 9 years ago
- Status changed from New to Needs Feedback
What exactly is the bug you encounter. What exact feature do you miss? Why do you bother at all? There is only one place where this is needed and used and there is no easy fix. I'd just keep it like that unless there are good and obvious reasons to change this API
Updated by Mathias Schreiber about 9 years ago
- Target version deleted (
next-patchlevel)
Updated by Morton Jonuschat almost 9 years ago
- Status changed from Needs Feedback to Closed
No feedback within the last 90 days => closing this issue.
If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.