protected function _before() { $serializerFactory = new SerializerFactory(); $this->serializer = $serializerFactory->build($this->getLogger()); }
private function getSerializer(LoggerInterface $logger) { $serializerFactory = new SerializerFactory(); return $serializerFactory->build($logger); }