| 1 | <?php |
||
| 16 | class Factory extends BaseFactory |
||
| 17 | { |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @var EventDispatcherInterface |
||
| 21 | */ |
||
| 22 | private $dispatcher = null; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a constraint instance for the given constraint name. |
||
| 26 | * |
||
| 27 | * @param string $constraintName constraint name |
||
| 28 | * @param EventDispatcherInterface $eventDispatcher dispatcher |
||
| 29 | * |
||
| 30 | * @throws InvalidArgumentException if is not possible create the constraint instance. |
||
| 31 | * |
||
| 32 | * @return ConstraintInterface|ObjectConstraint instance |
||
| 33 | */ |
||
| 34 | public function createInstanceFor($constraintName, EventDispatcherInterface $eventDispatcher = null) |
||
| 48 | } |
||
| 49 |