protected function dispatchSlotsEvent($baseEventName, Page $page, array $slots)
    {
        $eventNames = $this->generateEventNames($baseEventName, $page);
        $event = new SlotsRenderingEvent($slots);
        foreach($eventNames as $eventName) {
            $event = Dispatcher::dispatch($eventName, $event);
        }

        return $event->getSlots();
    }