src/Hyphenator.php
public static function factory($path = null, $locale = null)
    {
        $hyphenator = new Hyphenator();
        if (null !== $path && file_Exists($path)) {
            $hyphenator->setHomePath($path);
        }
        if (null !== $locale) {
            $hyphenator->getOptions()->setDefaultLocale($locale);
        }

        return $hyphenator;
    }
public static function factory($path = null, $locale = null)
    {
        $hyphenator = new Hyphenator();
        if (null !== $path && file_Exists($path)) {
            $hyphenator->setHomePath($path);
        }
        if (null !== $locale) {
            $hyphenator->getOptions()->setDefaultLocale($locale);
        }

        return $hyphenator;
    }
Create a new Hyphenator-Object for a certain locale

To determine the storage of the dictionaries we either use the set
default configuration-file or we take the provided file and set the
home-path from the information within that file.

@param string $path   The path to the configuration-file to use
@param string $locale The locale to be used

@return Hyphenator