TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ObjectManagerInterface Interface Reference
Inheritance diagram for ObjectManagerInterface:
SingletonInterface ObjectManager

Public Member Functions

 isRegistered ($objectName)
 
 get ($objectName)
 
 getEmptyObject ($className)
 
 getScope ($objectName)
 

Detailed Description

Interface for the TYPO3 Object Manager

Definition at line 20 of file ObjectManagerInterface.php.

Member Function Documentation

get (   $objectName)

Returns a fresh or existing instance of the object specified by $objectName.

Parameters
string$objectNameThe name of the object to return an instance of
Returns
object The object instance

Implemented in ObjectManager.

getEmptyObject (   $className)

Create an instance of $className without calling its constructor

Parameters
string$className
Returns
object

Implemented in ObjectManager.

getScope (   $objectName)

Returns the scope of the specified object.

Parameters
string$objectNameThe object name
Returns
int One of the Container::SCOPE_ constants

Implemented in ObjectManager.

isRegistered (   $objectName)

Returns TRUE if an object with the given name is registered

Parameters
string$objectNameName of the object
Returns
bool TRUE if the object has been registered, otherwise FALSE

Implemented in ObjectManager.