public isRegistered ( string $objectName ) : boolean | ||
$objectName | string | Name of the object |
리턴 | boolean | TRUE if the object has been registered, otherwise FALSE |
public function isRegistered($objectName)
{
if (isset($this->objects[$objectName])) {
return true;
}
if ($objectName[0] === '\\') {
throw new \InvalidArgumentException('Object names must not start with a backslash ("' . $objectName . '")', 1270827335);
}
return false;
}