1
0
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:
Francois Zaninotto 2013-07-01 14:57:31 +02:00
parent b27d96a4e9
commit cf749f1e40
2 changed files with 4 additions and 7 deletions
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',