Neos\Flow\ObjectManagement\ObjectManagerInterface::forgetInstance PHP Method

forgetInstance() public method

If run during standard runtime, the whole application might become unstable because certain parts might already use an instance of this object. Therefore this method should only be used in a setUp() method of a functional test case.
public forgetInstance ( string $objectName ) : void
$objectName string The object name
return void
    public function forgetInstance($objectName);