Bug #6847

Straight value property injection fails with strings in static object container

Added by Karsten Dambekalns over 11 years ago. Updated almost 11 years ago.

Status:
Resolved
Priority:
Must have
Category:
Object
Start date:
2010-03-15
Due date:
% Done:

100%

Estimated time:
1.00 h
PHP Version:
Has patch:
Complexity:

Description

If strings are to be injected as straight values via property injection, the resulting code in the static object container leads to

Parse error: syntax error, unexpected ':' in /Users/karsten/Sites/typo3v5/Data/Temporary/f82c7e3cb126/StaticObjectContainer.php on line ...
or other similar errors.

This is because the generated code looks like (the string misses quotes):

$o->setLayoutRootPath(package://TYPO3/Private/TypoScript/Layouts/);

#1

Updated by Karsten Dambekalns over 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3941.

Also available in: Atom PDF