Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8cbc27

Browse filesBrowse files
committed
Merge branch '5.0'
* 5.0: Update serializer.rst
2 parents 6e9eb32 + 4b7dd62 commit b8cbc27
Copy full SHA for b8cbc27

File tree

Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-1
lines changed

‎components/serializer.rst

Copy file name to clipboardExpand all lines: components/serializer.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ exists in your project::
126126
Now, if you want to serialize this object into JSON, you only need to
127127
use the Serializer service created before::
128128

129-
$person = new App\Model\Person();
129+
use App\Model\Person;
130+
131+
$person = new Person();
130132
$person->setName('foo');
131133
$person->setAge(99);
132134
$person->setSportsperson(false);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.