public function SessionStreamWrapper::stream_close in Examples for Developers 3.x
Same name and namespace in other branches
- 8 stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php \Drupal\stream_wrapper_example\StreamWrapper\SessionStreamWrapper::stream_close()
Closes stream.
This method is called in response to fclose(). All resources that were locked, or allocated, by the wrapper should be released.
Overrides PhpStreamWrapperInterface::stream_close
See also
fclose()
PhpStreamWrapperInterface::dir_closedir()
http://php.net/manual/en/streamwrapper.stream-close.php
File
- modules/
stream_wrapper_example/ src/ StreamWrapper/ SessionStreamWrapper.php, line 589
Class
- SessionStreamWrapper
- Example stream wrapper class to handle session:// streams.
Namespace
Drupal\stream_wrapper_example\StreamWrapperCode
public function stream_close() {
// @codingStandardsIgnoreEnd
$this->streamPointer = 0;
// Unassign the reference.
unset($this->sessionContent);
return TRUE;
}