src/yimaBase/Mvc/Listener/DispatchListener.php
protected function complete($return, MvcEvent $event)
    {
        if (!is_object($return)) {
            if (ArrayUtils::hasStringKeys($return)) {
                $return = new ArrayObject($return, ArrayObject::ARRAY_AS_PROPS);
            }
        }
        $event->setResult($return);

        return $return;
    }
protected function complete($return, MvcEvent $event)
    {
        if (!is_object($return)) {
            if (ArrayUtils::hasStringKeys($return)) {
                $return = new ArrayObject($return, ArrayObject::ARRAY_AS_PROPS);
            }
        }
        $event->setResult($return);

        return $return;
    }
protected function complete ( $ return , MvcEvent $ event ) { if ( ! is_object ( $ return ) ) { if ( ArrayUtils :: hasStringKeys ( $ return ) ) { $ return = new ArrayObject ( $ return , ArrayObject :: ARRAY_AS_PROPS ) ; } } $ event -> setResult ( $ return ) ; return $ return ; }
Complete the dispatch

@param  mixed $return
@param  MvcEvent $event
@return mixed
Complete the dispatch