/** * Create service * * @param ServiceLocatorInterface $serviceLocator * @return TwViewHelper */ public function createService(ServiceLocatorInterface $serviceLocator) { $parentLocator = $serviceLocator->getServicelocator(); return new TwViewHelper($parentLocator->get(WidgetOptions::class), $parentLocator->get(TimelineBuilder::class)); }