public function handleRequest(\Psr\Http\Message\ServerRequestInterface $request)
    {
        // We define this constant, so that any TYPO3-Extension can check, if the REST-API is running
        define('REST_API_IS_RUNNING', true);

        // Dispatch the API-call
        $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
        $objectManager->get(Dispatcher::class)->dispatch();
    }
public function handleRequest(\Psr\Http\Message\ServerRequestInterface $request)
    {
        // We define this constant, so that any TYPO3-Extension can check, if the REST-API is running
        define('REST_API_IS_RUNNING', true);

        // Dispatch the API-call
        $objectManager = GeneralUtility::makeInstance(ObjectManager::class);
        $objectManager->get(Dispatcher::class)->dispatch();
    }
public function handleRequest ( \ Psr \ Http \ Message \ ServerRequestInterface $ request ) { // We define this constant, so that any TYPO3-Extension can check, if the REST-API is running define ( 'REST_API_IS_RUNNING' , true ) ; // Dispatch the API-call $ objectManager = GeneralUtility :: makeInstance ( ObjectManager :: class ) ; $ objectManager -> get ( Dispatcher :: class ) -> dispatch ( ) ; }
Handles a frontend request

@param \Psr\Http\Message\ServerRequestInterface $request

@return NULL|\Psr\Http\Message\ResponseInterface
Handles a frontend request