TYPO3  7.6
Public Member Functions | Private Member Functions | List of all members
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 (   $className)

Factory metod that builds a ClassInfo Object for the given classname - using reflection

Parameters
string$classNameThe class name to build the class info for
Exceptions
Exception\UnknownObjectException
Returns
the class info

Definition at line 29 of file ClassInfoFactory.php.

References ClassInfoFactory\getConstructorArguments(), ClassInfoFactory\getInjectMethods(), ClassInfoFactory\getInjectProperties(), ClassInfoFactory\getIsInitializeable(), and ClassInfoFactory\getIsSingleton().

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 ClassInfoFactory\buildClassInfoFromClassName().

getInjectMethods ( \ReflectionClass  $reflectedClass)
private

Build a list of inject methods for the given class.

Parameters
\ReflectionClass$reflectedClass
Exceptions
\Exception
Returns
array (nameOfInjectMethod => nameOfClassToBeInjected)

Definition at line 85 of file ClassInfoFactory.php.

References ClassInfoFactory\isNameOfInjectMethod().

Referenced by ClassInfoFactory\buildClassInfoFromClassName().

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 111 of file ClassInfoFactory.php.

Referenced by ClassInfoFactory\buildClassInfoFromClassName().

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 165 of file ClassInfoFactory.php.

Referenced by ClassInfoFactory\buildClassInfoFromClassName().

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 153 of file ClassInfoFactory.php.

Referenced by ClassInfoFactory\buildClassInfoFromClassName().

isNameOfInjectMethod (   $methodName)
private

This method checks if given method can be used for injection

Parameters
string$methodName
Returns
bool

Definition at line 135 of file ClassInfoFactory.php.

Referenced by ClassInfoFactory\getInjectMethods().