<?phpnamespaceApplication\Factory;useZend\ServiceManager\Factory\FactoryInterface;useInterop\Container\ContainerInterface;classIndexControllerFactoryimplementsFactoryInterface{publicfunction__invoke(ContainerInterface$container,$requestedName,array$options=null){/* get helpermanager gan */$headScript=$container->get('ViewHelperManager')->get('headScript');returnnew\Application\Controller\IndexController($headScript);}}