forked from facebook/hhvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update field_adapter extension as per revised wrapper design
Summary: Facebook : Design doc - https://fb.quip.com/mzaaAOaErmEN Revised design - - struct will only have a single getter method to get the wrapped object - wrapper will have thrift only methods that can be used during serialization. - No separate adapter class In this diff change the hhvm serialization extension as per the revised field wrapper design . Old FieldAdapter implementation - ``` class MyStruct { MyWrapper<int> $field; public function getWrapped_field():MyWrapper<int> { ... } public function setWrapped_field(MyWrapper<int>):void { ... } public function get_field():int { ... } public function set_field(int):void { ... } } class MyAdapter { ... } class MyWrapper { ... } ``` Revised design ``` class MyStruct { MyWrapper<int> $field; public function get_field():MyWrapper<int> { ... } } class MyWrapper { public function getValue_DO_NOT_USE_THRIFT_INTERNAL() { ... } public function setValue_DO_NOT_USE_THRIFT_INTERNAL($val) { ... } ..... } ``` #forcetdhashing Reviewed By: andrii-korotkov Differential Revision: D34590769 fbshipit-source-id: da6a1c956cc9a2bfbd4ccba492540423ce0e58c5
- Loading branch information
1 parent
65b1c95
commit c559c6b
Showing
12 changed files
with
211 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.