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
<?php | |
final class ExampleMailer extends Mailer | |
{ | |
protected $parameters; | |
public function __construct(\Swift_Mailer $mailer, UrlGeneratorInterface $router, \Twig_Environment $twig, array $parameters) | |
{ | |
parent::__construct($mailer, $router, $twig); | |
$this->parameters = $parameters; |
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
<?php | |
namespace Acme\Serializer\Normalizer; | |
use Symfony\Component\Serializer\Normalizer\NormalizerInterface; | |
class JsonSerializableNormalizer implements NormalizerInterface | |
{ | |
/** | |
* @inheritdoc | |
*/ |
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
<?php | |
use Symfony\Component\PropertyAccess\PropertyAccessor; | |
use Symfony\Component\PropertyAccess\PropertyPath; | |
/** | |
* A property accessor that allows you to rewrite a property path for setters and getters. | |
*/ | |
class CustomPropertyAccessor extends PropertyAccessor | |
{ | |
/** |
OlderNewer