We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0516d85 + 3f53240 commit 4b7dd62Copy full SHA for 4b7dd62
components/serializer.rst
@@ -126,7 +126,9 @@ exists in your project::
126
Now, if you want to serialize this object into JSON, you only need to
127
use the Serializer service created before::
128
129
- $person = new App\Model\Person();
+ use App\Model\Person;
130
+
131
+ $person = new Person();
132
$person->setName('foo');
133
$person->setAge(99);
134
$person->setSportsperson(false);
0 commit comments