---
layout: docs
title: __construct
id: class.Facebook.HackCodegen.HackfmtFormatter.__construct
docid: class.Facebook.HackCodegen.HackfmtFormatter.__construct
permalink: /docs/reference/class.Facebook.HackCodegen.HackfmtFormatter.__construct/
---
# Facebook\\HackCodegen\\HackfmtFormatter::__construct()




``` Hack
public function __construct(
  Facebook\HackCodegen\IHackCodegenConfig $config,
);
```




## Parameters




- [` Facebook\HackCodegen\IHackCodegenConfig `](<interface.Facebook.HackCodegen.IHackCodegenConfig.md>)`` $config ``