Bug #29694

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

Added by Torsten no-lastname-given almost 10 years ago. Updated about 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.

#2

Updated by Karsten Dambekalns over 9 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
  • Target version set to 1.0.3
  • Has patch set to No
#3

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9145

#4

Updated by Karsten Dambekalns over 9 years ago

  • Target version changed from 1.0.3 to 1.0.4
#5

Updated by Karsten Dambekalns over 9 years ago

  • Target version changed from 1.0.4 to 1.0.5
#6

Updated by Gerrit Code Review about 9 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9145

#7

Updated by Gerrit Code Review about 9 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/9145

#8

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#9

Updated by Gerrit Code Review about 9 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch FLOW3-1.0 has been pushed to the review server.
It is available at http://review.typo3.org/11106

#10

Updated by Karsten Dambekalns about 9 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF