Feature #42539
Allow Object.yaml property value to be also an array
100%
Description
It would be nice to be allowed setting also arrays as values for Object properties.
Use case: consider the following "foreign" repository:
/**
* A repository for Comments
*
* @Flow\Scope("singleton")
*/
class CommentRepository extends \TYPO3\Flow\Persistence\Repository {
/**
* @var array
*/
protected $defaultOrderings = array('creationDate' => \TYPO3\Flow\Persistence\QueryInterface::ORDER_DESCENDING);
I'd like to modify this from my application, using Objects.yaml:
TYPO3\Comments\Domain\Repository\CommentRepository:
properties:
defaultOrderings:
value:
creationDate: 'ASC'
This currently doesn't work because the handling (in DependencyInjection\ProxyClassBuilder) does only expect plain values.
Related issues
Updated by Gerrit Code Review about 8 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16068
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16068
Updated by Gerrit Code Review about 8 years ago
Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/16068
Updated by Adrian Föder about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset fd2178cfa3cf880cd3add52189e517470b30eb4c.