1 | <?php |
||
17 | class Factory extends BaseFactory |
||
18 | { |
||
19 | |||
20 | /** |
||
21 | * @var EventDispatcherInterface |
||
22 | */ |
||
23 | private $dispatcher = null; |
||
24 | |||
25 | /** |
||
26 | * set EventDispatcher |
||
27 | * |
||
28 | * @param EventDispatcherInterface $dispatcher dispatcher |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function setEventDispatcher($dispatcher) |
||
36 | |||
37 | /** |
||
38 | * Create a constraint instance for the given constraint name. |
||
39 | * |
||
40 | * @param string $constraintName constraint name |
||
41 | * |
||
42 | * @throws InvalidArgumentException if is not possible create the constraint instance. |
||
43 | * |
||
44 | * @return BaseConstraint instance |
||
45 | */ |
||
46 | public function createInstanceFor($constraintName) |
||
56 | } |
||
57 |