Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions content/documentation/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ return (new \Phel\Config\PhelConfig())
->setNoCacheWhenBuilding([])
->setFormatDirs(['src', 'tests'])
->setKeepGeneratedTempFiles(false)
->setTempDir(sys_get_temp_dir().'/phel')
->setBuildConfig((new \Phel\Config\PhelBuildConfig())
->setMainPhelNamespace('your-ns\index')
->setMainPhpPath('out/index.php'))
Expand Down Expand Up @@ -133,6 +134,20 @@ return (new \Phel\Config\PhelConfig())
;
```

### TempDir

Allows setting a custom absolute path for temporary files.

```php
<?php
return (new \Phel\Config\PhelConfig())
->setTempDir('/tmp/phel')
# ...
;
```

If the path does not exist and cannot be created or written to, an exception is thrown.

### BuildConfig

The configuration when running the `phel build` command.
Expand Down
Loading