Ejemplo n.º 1
0
 /**
  * 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);
     }
 }
Ejemplo n.º 2
0
 /**
  * Constructor.
  *
  * set dictionary path.
  */
 private function __construct()
 {
     if (is_null(static::$dictionary)) {
         self::$dictionary = unserialize(file_get_contents(__DIR__ . '/data/dict.php'));
     }
 }