File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,7 @@ The advantages of doing this will become more obvious as you continue::
50
50
$this->options = $resolver->resolve($options);
51
51
}
52
52
53
- The ``$options `` property is an instance of
54
- :class: `Symfony\\ Component\\ OptionsResolver\\ Options `, which implements
55
- :phpclass: `ArrayAccess `, :phpclass: `Iterator ` and :phpclass: `Countable `. That
56
- means you can handle it just like a normal array::
53
+ The options property now is a well defined array with all resolved options readily available::
57
54
58
55
// ...
59
56
public function getHost()
@@ -76,8 +73,6 @@ Now, try to actually use the class::
76
73
'password' => 'pa$$word',
77
74
));
78
75
79
- echo $mailer->getPassword();
80
-
81
76
Right now, you'll receive a
82
77
:class: `Symfony\\ Component\\ OptionsResolver\\ Exception\\ InvalidOptionsException `,
83
78
which tells you that the options ``host `` and ``password `` do not exist.
You can’t perform that action at this time.
0 commit comments