/** * Attach a handler to the session validator chain * * @param string $topic * @param string|object|Closure $context * @param null|string $handler * @return Zend\Stdlib\SignalHandler */ public function connect($topic, $context, $handler = null) { if ($context instanceof Validator) { $data = $context->getData(); $name = $context->getName(); $this->getStorage()->setMetadata('_VALID', array($name => $data)); } $handle = parent::connect($topic, $context, $handler); return $handle; }