/** * {@inheritdoc} */ public function normalize(Normalizer $normalizer, Context $context) { return ['site' => $normalizer->normalizeObject($this->site, $context), 'destroyedSessions' => $this->destroyedSessions]; }
/** * @param mixed * * @return array */ public function normalizeCollection($data) { $context = new Context(); return $this->normalizer->normalizeObject($data, $context); }
/** * {@inheritdoc} */ public function normalize(Normalizer $normalizer, Context $context) { return ['siteState' => $normalizer->normalizeObject($this->siteState, $context)]; }
/** * {@inheritdoc} */ public function normalize(Normalizer $normalizer, Context $context) { return ['user' => $normalizer->normalizeObject($this->user, $context)]; }
/** * {@inheritdoc} */ public function normalize(Normalizer $normalizer, Context $context) { return ['site' => $normalizer->normalizeObject($this->site, $context), 'loginUrl' => (string) $this->loginUrl]; }