* @copyright 2012-2013 Jurian Sluiman. * @license http://www.opensource.org/licenses/bsd-license.php BSD License * @link http://juriansluiman.nl */ namespace SlmLocale\Service; use Interop\Container\ContainerInterface; use SlmLocale\Locale\Detector; use SlmLocale\View\Helper\LocaleMenu; class LocaleMenuViewHelperFactory { public function __invoke(ContainerInterface $container) { $detector = $container->get(Detector::class); $helper = new LocaleMenu(); $helper->setDetector($detector); return $helper; } }