+
+ if ($this instanceof AccessResultReasonInterface && !is_null($this->getReason())) {
+ $result->setReason($this->getReason());
+ }
+ elseif ($other instanceof AccessResultReasonInterface && !is_null($other->getReason())) {
+ $result->setReason($other->getReason());