for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace KRDigital\NamesDetector\Config;
class ConfigFactory
{
public static function create(string $dictionaryPath = null): ConfigInterface
if (null === $dictionaryPath) {
$dictionaryPath = __DIR__.'/../../data/dictionary.php';
}
return new Config($dictionaryPath);