setUseShortArrayNotation() public method

Set the flag indicating whether or not generated config files should use short array notation.
public setUseShortArrayNotation ( $flag = true ) : void
return 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;
 }