[TYPO3-mvc] Extbase 1.3 and CLI

Tim Schoch | GSTALTIG tim.schoch at gstaltig.ch
Fri May 6 16:41:10 CEST 2011


Hello Sebastian

I gave it a try and found this solution.
In Classes/MVC/Web/RequestBuilder::build() @ around Line 150

$frameworkConfiguration = $this->configurationManager->getConfiguration( Tx_Extbase_Configuration_ConfigurationManager::CONFIGURATION_TYPE_FRAMEWORK );
$allowedActions = $this->allowedControllerActions[$controllerName];
if (is_string($parameters['action']) && is_array($allowedActions) && in_array($parameters['action'], $allowedActions)) {
  $actionName = filter_var($parameters['action'], FILTER_SANITIZE_STRING);
}
if (is_string($frameworkConfiguration['action']) && is_array($allowedActions) && in_array($frameworkConfiguration['action'], $allowedActions)) {
  $actionName = $frameworkConfiguration['action'];
}
elseif (!empty($this->defaultActionName)) {
  $actionName = $this->defaultActionName;
}

It works for me, but I'm absolutely not sure if this has any side effects or if its a clean solution. 
Side note: I have no idea, where and how to submit this code. Can you point me in the right direction?
Thanks, Tim


More information about the TYPO3-project-typo3v4mvc mailing list