Bug #29694

\TYPO3\FLOW3\Resource\Resource is missing the __toString Method

Added by Torsten no-lastname-given about 10 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Must have
Category:
Resource
Start date:
2011-09-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
Has patch:
No
Complexity:

Description

Hi,
the __toString method mentioned here:

http://flow3.typo3.org/fileadmin/manual/nightly/TheDefinitiveGuide/PartIII/ResourceManagement.html

is currently not present.

Would be great if someone could add this:

public function __toString() {
  return (string)$this->getResourcePointer();
}

So the described functionality

file_get_contents('resource://' . $resource); 

will work.

Also available in: Atom PDF