Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #24321 added ability to handle parent classes for PropertyNor…
…malizer (ivoba) This PR was squashed before being merged into the 3.4 branch (closes #24321). Discussion ---------- added ability to handle parent classes for PropertyNormalizer | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | yes <!-- don't forget updating src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget updating UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | #24152 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | symfony/symfony-docs#... <!--highly recommended for new features--> <!-- - Bug fixes must be submitted against the lowest branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too). - Features and deprecations must be submitted against the 3.4, legacy code removals go to the master branch. - Please fill in this template according to the PR you're about to submit. - Replace this comment by a description of what your PR is solving. --> This adds the ability for PropertyNormalizer to normalize/denormalize properties from parent classes. Commits ------- 5ecafc5 added ability to handle parent classes for PropertyNormalizer
- Loading branch information
Showing
3 changed files
with
99 additions
and
10 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
33 changes: 33 additions & 0 deletions
33
src/Symfony/Component/Serializer/Tests/Fixtures/GroupDummyChild.php
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien@symfony.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Symfony\Component\Serializer\Tests\Fixtures; | ||
|
||
class GroupDummyChild extends GroupDummy | ||
{ | ||
private $baz; | ||
|
||
/** | ||
* @return mixed | ||
*/ | ||
public function getBaz() | ||
{ | ||
return $this->baz; | ||
} | ||
|
||
/** | ||
* @param mixed $baz | ||
*/ | ||
public function setBaz($baz) | ||
{ | ||
$this->baz = $baz; | ||
} | ||
} |
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