Neos\Flow\ObjectManagement\ObjectManager::forgetInstance PHP Метод

forgetInstance() публичный Метод

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
Результат void
    public function forgetInstance($objectName)
    {
        unset($this->objects[$objectName]['i']);
    }