public function __construct(Dispatcher $events, PostRepository $posts) { $this->events = $events; $this->posts = $posts; }