TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory Class Reference

Public Member Functions

 buildClassInfoFromClassName ($className)
 

Private Member Functions

 getConstructorArguments (\ReflectionClass $reflectedClass)
 
 getInjectMethods (\ReflectionClass $reflectedClass)
 
 getInjectProperties (\ReflectionClass $reflectedClass)
 
 isNameOfInjectMethod ($methodName)
 
 getIsSingleton ($classname)
 
 getIsInitializeable ($classname)
 

Detailed Description

TYPO3 Dependency Injection container

Definition at line 20 of file ClassInfoFactory.php.

Member Function Documentation

◆ buildClassInfoFromClassName()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::buildClassInfoFromClassName (   $className)

◆ getConstructorArguments()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::getConstructorArguments ( \ReflectionClass  $reflectedClass)
private

Build a list of constructor arguments

Parameters
\ReflectionClass$reflectedClass
Returns
array of parameter infos for constructor

Definition at line 53 of file ClassInfoFactory.php.

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\buildClassInfoFromClassName().

◆ getInjectMethods()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::getInjectMethods ( \ReflectionClass  $reflectedClass)
private

Build a list of inject methods for the given class.

Parameters
\ReflectionClass$reflectedClass
Exceptions

Definition at line 84 of file ClassInfoFactory.php.

References TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\isNameOfInjectMethod().

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\buildClassInfoFromClassName().

◆ getInjectProperties()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::getInjectProperties ( \ReflectionClass  $reflectedClass)
private

Build a list of properties to be injected for the given class.

Parameters
\ReflectionClass$reflectedClass
Returns
array (nameOfInjectProperty => nameOfClassToBeInjected)

Definition at line 110 of file ClassInfoFactory.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\buildClassInfoFromClassName().

◆ getIsInitializeable()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::getIsInitializeable (   $classname)
private

This method is used to determine of the object is initializeable with the method initializeObject.

Parameters
string$classname
Returns
bool

Definition at line 164 of file ClassInfoFactory.php.

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\buildClassInfoFromClassName().

◆ getIsSingleton()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::getIsSingleton (   $classname)
private

This method is used to determine if a class is a singleton or not.

Parameters
string$classname
Returns
bool

Definition at line 152 of file ClassInfoFactory.php.

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\buildClassInfoFromClassName().

◆ isNameOfInjectMethod()

TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory::isNameOfInjectMethod (   $methodName)
private

This method checks if given method can be used for injection

Parameters
string$methodName
Returns
bool

Definition at line 134 of file ClassInfoFactory.php.

Referenced by TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory\getInjectMethods().