| 1 | <?php |
||
| 12 | class EncoderPlugin implements PluginInterface |
||
| 13 | { |
||
| 14 | private $formatter; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param FormatterInterface $formatter |
||
| 18 | */ |
||
| 19 | 12 | public function __construct(FormatterInterface $formatter = null) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * {@inheritdoc} |
||
| 29 | */ |
||
| 30 | 9 | public static function getSubscribedEvents() |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @param Packet $packet |
||
| 39 | * |
||
| 40 | * @return Packet |
||
| 41 | */ |
||
| 42 | 2 | public function onAfterExecute(Packet $packet) |
|
| 50 | } |
||
| 51 |