95 if(isset($this->allLists[$event])){
96 return $this->allLists[$event];
99 $class = new \ReflectionClass($event);
100 if(!self::isValidClass($class)){
101 throw new \InvalidArgumentException(
"Event must be non-abstract or have the @allowHandle annotation");
104 $parent = self::resolveNearestHandleableParent($class);
105 $cache =
new RegisteredListenerCache();
106 $this->handlerCaches[$event] = $cache;
107 return $this->allLists[$event] =
new HandlerList(
109 parentList: $parent !==
null ? $this->getListFor($parent->getName()) :
null,