/**
* Sets the internal event dispatcher on the given object.
*
* @param object $object The object
*
* @return void
*
* @since 4.1.0
*/
private function setDispatcherOnObject($object)
{
if (!$object instanceof DispatcherAwareInterface) {
return;
}
try {
$object->setDispatcher($this->getDispatcher());
} catch (\UnexpectedValueException $e) {
// Ignore it
}
}