/** * Execute the shutdown procedure. * * @author Sean Kerr <*****@*****.**> * @since 0.9.0 */ public function shutdown() { $storage = $this->getContext()->getStorage(); // write credentials to the storage $storage->write(self::AUTH_NAMESPACE, $this->authenticated); $storage->write(self::CREDENTIAL_NAMESPACE, $this->credentials); // call the parent shutdown method parent::shutdown(); }