Revision: 220
http://sourceforge.net/p/beeframework/code/220
Author: m_plomer
Date: 2014-09-18 02:01:49 +0000 (Thu, 18 Sep 2014)
Log Message:
-----------
- MVC: fixed broken handling of optional parameters in AnnotationBasedInvocator
Modified Paths:
--------------
trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/HandlerMethodMetadata.php
Modified: trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/HandlerMethodMetadata.php
===================================================================
--- trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/HandlerMethodMetadata.php 2014-09-18 01:53:52 UTC (rev 219)
+++ trunk/framework/Bee/MVC/Controller/Multiaction/HandlerMethodInvocator/HandlerMethodMetadata.php 2014-09-18 02:01:49 UTC (rev 220)
@@ -57,7 +57,7 @@
foreach ($method->getParameters() as $param) {
$typeName = array_key_exists($param->getName(), $typeNameMap) ?
$typeNameMap[$param->getName()] :
- (!is_null($param->getClass()) ? $param->getClass()->getName() : ITypeDefinitions::STRING);
+ (!is_null($param->getClass()) ? $param->getClass()->getName() : ($param->isArray() ? ITypeDefinitions::ARRAY_TYPE : ITypeDefinitions::STRING));
if ($typeName == 'Bee_MVC_IHttpRequest') {
$this->requestParamPos[$param->getPosition()] = true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|