Skip to content

Commit

Permalink
修改词典路径
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Aug 1, 2015
1 parent 0a2433b commit c579f00
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1,100 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ $pinyin = Pinyin::trans("带着希望去旅行,比到达终点更美好");
- [x] 支持 Laravel 5 的service provider。[overtrue/laravel-pinyin](https://github.com/overtrue/laravel-pinyin)

## Contribution
欢迎提意见及完善补充词库 `src/Pinyin/data/additional.php`:kiss:
欢迎提意见及完善补充词库 `src/data/dict.php`:kiss:

## 参考

Expand Down
2 changes: 1 addition & 1 deletion src/Pinyin/Pinyin.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class Pinyin
private function __construct()
{
if (is_null(static::$dictionary)) {
self::$dictionary = json_decode(file_get_contents(__DIR__.'/data/dict_new.php'), true);
self::$dictionary = json_decode(file_get_contents(dirname(__DIR__).'/data/dict.php'), true);
}
}

Expand Down
16 changes: 0 additions & 16 deletions src/Pinyin/data/additional.php

This file was deleted.

Loading

0 comments on commit c579f00

Please sign in to comment.