Set the flag indicating whether or not generated config files should use
short array notation.
public setUseShortArrayNotation ( $flag = true ) : void | ||
리턴 | void |
/** * @param ContainerInterface $container * @return ModuleModel * @throws ServiceNotCreatedException */ public function __invoke(ContainerInterface $container) { if (!$container->has('ModuleManager')) { throw new ServiceNotCreatedException(sprintf('Cannot create %s service because ModuleManager service is not present', ModuleModel::class)); } $config = $this->getConfig($container); $model = new ModuleModel($container->get('ModuleManager'), $this->getNamedConfigArray('zf-rest', $config), $this->getNamedConfigArray('zf-rpc', $config)); $model->setUseShortArrayNotation($this->useShortArrayNotation($config)); return $model; }