Documentation

StreamResourceWrapper
in package

Minimalistic wrapper of stream resources

This is not a fancy API.

It is mostly for type-safe passing around, allowing for injection-friendly interfaces and unwrapping the actual resource for consumption

Think about moving this somewhere but don't put it into a dependency-heavy environment

Tags
author

Ralf Lang ralf.lang@ralf-lang.de

category

Horde

copyright

2003-2022 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL

Table of Contents

$resource  : mixed
__construct()  : mixed
Detect from SAPI if running CLI
__invoke()  : mixed
Expose the resource to consuming functions

Properties

Methods

__construct()

Detect from SAPI if running CLI

public __construct(mixed $resource) : mixed
Parameters
$resource : mixed
Return values
mixed

__invoke()

Expose the resource to consuming functions

public __invoke() : mixed
Return values
mixed

Search results