$this->interfaces =
$this->singlyImplemented =
$this->aliases =
[];
} /**
* Registers a definition in the container with its instanceof-conditionals.
*
* @return void
*/
protected function setDefinition(string
$id, Definition
$definition) { $this->container->
removeBindings($id);
foreach ($definition->
getTag('container.error'
) as $error) { if (isset($error['message'
])) { $definition->
addError($error['message'
]);
} } if ($this->isLoadingInstanceof
) { if (!
$definition instanceof ChildDefinition
) { throw new InvalidArgumentException(sprintf('Invalid type definition "%s": ChildDefinition expected, "%s" given.',
$id,
get_debug_type($definition)));
}