src/Mouf/MoufManager.php
public function setInstanceAnonymousness($instanceName, $anonymous) {
		if ($anonymous) {
			$this->declaredInstances[$instanceName]['anonymous'] = true;
			// An anonymous object must be weak.
			$this->declaredInstances[$instanceName]['weak'] = true;
		} else {
			unset($this->declaredInstances[$instanceName]['anonymous']);
		}
	}
public function setInstanceAnonymousness($instanceName, $anonymous) {
		if ($anonymous) {
			$this->declaredInstances[$instanceName]['anonymous'] = true;
			// An anonymous object must be weak.
			$this->declaredInstances[$instanceName]['weak'] = true;
		} else {
			unset($this->declaredInstances[$instanceName]['anonymous']);
		}
	}
public function setInstanceAnonymousness ( $ instanceName , $ anonymous ) { if ( $ anonymous ) { $ this -> declaredInstances [ $ instanceName ] [ 'anonymous' ] = true ; // An anonymous object must be weak.
 $ this -> declaredInstances [ $ instanceName ] [ 'weak' ] = true ; } else { unset ( $ this -> declaredInstances [ $ instanceName ] [ 'anonymous' ] ) ; } }
Decides whether an instance is anonymous or not.
@param string $instanceName
@param bool $anonymous
Decides whether an instance is anonymous or not .