Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 750 Bytes

evaluator_builder.md

File metadata and controls

33 lines (22 loc) · 750 Bytes

EvaluatorBuilder

The EvaluatorBuilder build an Evaluator after configuring a few options.

Usage

$builder = new EvaluatorBuilder();

// allows you to add a custom adapter
$builder->registerAdapter($customAdapter);

// the default is "en_US"
$builder->withCulture('fr_FR');

// the default is "App\\Foundry\\Factory"
$builder->withFactoryNamespace('Your\Custom\Namespace');

// the default is created using InflectorFactory::create()->build()
$builder->withInflector($inflector);

$evaluator = $builder->build();

You may return to the README or read the behat, the evaluator or the adapters guides.