mneuhaus/TYPO3.Flow — pull request #7 by mneuhaus-bot (2014-03-17 13:29:11+00:00)
Title: [WIP][FEATURE] Add an isDefaultView matcher for ViewConfiguration

This change adds an additional matcher to the ViewConfiguration
RequestMatcher which checks for the defaultViewName of the
currently targeted Controller.

This is useful to fill any controller with a view of a specific type
with some view configuration. For example i could use this very
much in the TYPO3.Expose package to set the TypoScriptPaths on
any Controller which uses the TypoScriptView of Expose:

-
requestFilter: 'isDefaultView("TYPO3\Expose\View\TypoScriptView")'
options:
typoScriptPathPatterns:
- 'resource://TYPO3.Expose/Private/TypoScripts/'
- 'resource://My.Package/Private/TypoScripts/'

releases: master
Change-Id: I6711dc533bab3c49e3e2d54e8a421a57ee82289f