mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-22 16:29:55 +01:00
Make new providers available by default
This commit is contained in:
parent
b27d96a4e9
commit
cf749f1e40
src/Faker
@ -6,7 +6,7 @@ class Factory
|
||||
{
|
||||
const DEFAULT_LOCALE = 'en_US';
|
||||
|
||||
protected static $defaultProviders = array('Person', 'Address', 'PhoneNumber', 'Company', 'Lorem', 'Internet', 'DateTime', 'Miscellaneous', 'UserAgent', 'Uuid');
|
||||
protected static $defaultProviders = array('Person', 'Address', 'PhoneNumber', 'Company', 'Lorem', 'Internet', 'DateTime', 'Miscellaneous', 'UserAgent', 'Uuid', 'File', 'Color');
|
||||
|
||||
public static function create($locale = self::DEFAULT_LOCALE)
|
||||
{
|
||||
|
@ -1,15 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by lsv
|
||||
* Date: 6/17/13
|
||||
* Time: 12:49 AM
|
||||
*/
|
||||
|
||||
namespace Faker\Provider;
|
||||
|
||||
/**
|
||||
* @author lsv
|
||||
*/
|
||||
class Color extends Base
|
||||
{
|
||||
|
||||
protected static $safeColorNames = array(
|
||||
'black', 'maroon', 'green', 'navy', 'olive',
|
||||
'purple', 'teal', 'lime', 'blue', 'silver',
|
||||
|
Loading…
x
Reference in New Issue
Block a user