src/Leevel/Event/Dispatch.php
protected function makeSubject(array $listeners): Subject
    {
        $subject = new Subject($this->container);

        foreach ($listeners as $item) {
            $subject->register($item);
        }

        return $subject;
    }
protected function makeSubject(array $listeners): Subject
    {
        $subject = new Subject($this->container);

        foreach ($listeners as $item) {
            $subject->register($item);
        }

        return $subject;
    }
创建监听器观察者角色主体.

@param string $listeners

@return \Leevel\Event\Subject