/** * Constructor. * * set dictionary path. */ private function __construct() { if (is_null(static::$dictionary)) { self::$dictionary = json_decode(file_get_contents(dirname(__DIR__) . '/data/dict.php'), true); } }
/** * Constructor. * * set dictionary path. */ private function __construct() { if (is_null(static::$dictionary)) { self::$dictionary = unserialize(file_get_contents(__DIR__ . '/data/dict.php')); } }