src/setConfigFolderPath.php
<?php
declare(strict_types = 1);
namespace Folded;
use Folded\Exceptions\NotAFolderException;
use Folded\Exceptions\FolderNotFoundException;
if (!function_exists("Folded\setConfigFolderPath")) {
/**
* Set the folder containing the files storing configurations.
*
* @param string $path The path where the files store configurations.
*
* @throws FolderNotFoundException If the folder is not found.
* @throws NotAFolderException If the path is not a folder.
*
* @since 0.1.0
*
* @example
* setConfigFolderPath(__DIR__ . "/config");
*/
function setConfigFolderPath(string $path): void
{
Config::setFolderPath($path);
}
}