TYPO3
7.6
|
Public Member Functions | |
__construct () | |
__sleep () | |
__wakeup () | |
isRegistered ($objectName) | |
get ($objectName) | |
getScope ($objectName) | |
getEmptyObject ($className) | |
Protected Attributes | |
$objectContainer | |
Implementation of the default Extbase Object Manager
Definition at line 22 of file ObjectManager.php.
__construct | ( | ) |
Constructs a new Object Manager
Definition at line 32 of file ObjectManager.php.
Referenced by ObjectManager\__wakeup().
__sleep | ( | ) |
Serialization (sleep) helper.
Removes properties of this object from serialization. This action is necessary, since there might be closures used in the accordant content objects (e.g. in FLUIDTEMPLATE) which cannot be serialized. It's fine to reset $this->contentObjects since elements will be recreated and are just a local cache, but not required for runtime logic and behaviour.
Definition at line 50 of file ObjectManager.php.
__wakeup | ( | ) |
Unserialization (wakeup) helper.
Initializes the properties again that have been removed by a call to the __sleep() method on serialization before.
Definition at line 68 of file ObjectManager.php.
References ObjectManager\__construct().
get | ( | $objectName | ) |
Returns a fresh or existing instance of the object specified by $objectName.
string | $objectName | The name of the object to return an instance of |
Implements ObjectManagerInterface.
Definition at line 91 of file ObjectManager.php.
getEmptyObject | ( | $className | ) |
Create an instance of $className without calling its constructor
string | $className |
Implements ObjectManagerInterface.
Definition at line 127 of file ObjectManager.php.
getScope | ( | $objectName | ) |
Returns the scope of the specified object.
string | $objectName | The object name |
\TYPO3\CMS\Extbase\Object\Container\Exception\UnknownObjectException |
Implements ObjectManagerInterface.
Definition at line 112 of file ObjectManager.php.
References ObjectManager\isRegistered(), Container\SCOPE_PROTOTYPE, and Container\SCOPE_SINGLETON.
isRegistered | ( | $objectName | ) |
Returns TRUE if an object with the given name is registered
string | $objectName | Name of the object |
Implements ObjectManagerInterface.
Definition at line 79 of file ObjectManager.php.
Referenced by ObjectManager\getScope().
|
protected |
Definition at line 27 of file ObjectManager.php.