src/Handler/JsonHandler.php
private function executeJsonRequest(MethodMetaData $methodMetaData, JsonRequest $jsonRequest)
    {
        $method = clone $this->container->get($methodMetaData->getMethod());

        // Inject container
        if ($method instanceof ContainerAwareInterface && null !== $this->container) {
            $method->setContainer($this->container);
        }

        // Dispatch execute json
        $this->dispatch(
            Event\JsonExecuteEvent::EVENT,
            new Event\JsonExecuteEvent($method, $methodMetaData, $jsonRequest)
        );

        return $method->{$methodMetaData->getExecute()}();
    }
private function executeJsonRequest(MethodMetaData $methodMetaData, JsonRequest $jsonRequest)
    {
        $method = clone $this->container->get($methodMetaData->getMethod());

        // Inject container
        if ($method instanceof ContainerAwareInterface && null !== $this->container) {
            $method->setContainer($this->container);
        }

        // Dispatch execute json
        $this->dispatch(
            Event\JsonExecuteEvent::EVENT,
            new Event\JsonExecuteEvent($method, $methodMetaData, $jsonRequest)
        );

        return $method->{$methodMetaData->getExecute()}();
    }
private function executeJsonRequest ( MethodMetaData $ methodMetaData , JsonRequest $ jsonRequest ) { $ method = clone $ this -> container -> get ( $ methodMetaData -> getMethod ( ) ) ; // Inject container if ( $ method instanceof ContainerAwareInterface && null !== $ this -> container ) { $ method -> setContainer ( $ this -> container ) ; } // Dispatch execute json $ this -> dispatch ( Event \ JsonExecuteEvent :: EVENT , new Event \ JsonExecuteEvent ( $ method , $ methodMetaData , $ jsonRequest ) ) ; return $ method -> { $ methodMetaData -> getExecute ( ) } ( ) ; }
@param MethodMetaData $methodMetaData
@param JsonRequest    $jsonRequest

@return mixed
@param MethodMetaData $methodMetaData @param JsonRequest $jsonRequest