From 64cb2172c25d090f1e56b41bfc67a2ba1b53b3cd Mon Sep 17 00:00:00 2001 From: Maik Penz Date: Wed, 6 Feb 2013 09:14:15 +0100 Subject: [PATCH] added uuid to default providers --- readme.md | 4 ++++ src/Faker/Factory.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 8fe80a4c..b2259910 100644 --- a/readme.md +++ b/readme.md @@ -173,6 +173,10 @@ Each of the generator properties (like `name`, `address`, and `lorem`) are calle opera // 'Opera/8.25 (Windows NT 5.1; en-US) Presto/2.9.188 Version/10.00' internetExplorer // 'Mozilla/5.0 (compatible; MSIE 7.0; Windows 98; Win 9x 4.90; Trident/3.0)' +### `Faker\Provider\Uuid` + + uuid // '7e57d004-2b97-0e7a-b45f-5387367791cd' + ## Localization `Faker\Factory` can take a locale as an argument, to return localized data. If no localized provider is found, the factory fallbacks to the default locale (en_EN). diff --git a/src/Faker/Factory.php b/src/Faker/Factory.php index ec19aa2d..6a9d4fc4 100644 --- a/src/Faker/Factory.php +++ b/src/Faker/Factory.php @@ -6,7 +6,7 @@ class Factory { const DEFAULT_LOCALE = 'en_US'; - protected static $defaultProviders = array('Person', 'Address', 'PhoneNumber', 'Company', 'Lorem', 'Internet', 'DateTime', 'Miscellaneous', 'UserAgent'); + protected static $defaultProviders = array('Person', 'Address', 'PhoneNumber', 'Company', 'Lorem', 'Internet', 'DateTime', 'Miscellaneous', 'UserAgent', 'Uuid'); public static function create($locale = self::DEFAULT_LOCALE) {