TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Object\Container\ClassInfoFactory:
Tx_Extbase_Object_Container_ClassInfoFactory

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

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! TYPO3 Dependency Injection container

Author
Daniel Pötzinger

Definition at line 21 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.

References $result.

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

References $result, and 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 108 of file ClassInfoFactory.php.

References $result, and 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
boolean

Definition at line 159 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
boolean

Definition at line 148 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
boolean

Definition at line 131 of file ClassInfoFactory.php.

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