Bug #6847
Straight value property injection fails with strings in static object container
| Status: | Resolved | Start date: | 2010-03-15 | |
|---|---|---|---|---|
| Priority: | Must have | Due date: | ||
| Assignee: | Karsten Dambekalns | % Done: | 100% |
|
| Category: | Object | |||
| Target version: | TYPO3 Flow Base Distribution - 1.0 alpha 8 | Estimated time: | 1.00 hour | |
| PHP Version: | Complexity: | |||
| Has patch: | FLOW3 version affected: | |||
| Votes: | 0 |
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/);
Associated revisions
[+BUGFIX] FLOW3 (Object): When building the static object container injected string values are quoted now, fixes #6847.
History
Updated by Karsten Dambekalns about 3 years ago
- Status changed from Accepted to Resolved
- % Done changed from 0 to 100
Applied in changeset r3941.