<?php

namespace Emergence\Site;


abstract class RequestHandler extends \RequestHandler implements IRequestHandler
{
    protected static function sendResponse(IResponse $response)
    {
        return static::respond($response->getId(), $response->getPayload(), $response->getMode());
    }
}
<?php

namespace Emergence\Site;


abstract class RequestHandler extends \RequestHandler implements IRequestHandler
{
    public static function sendResponse(IResponse $response, $templatePrefix = null)
    {
        $templateId = $response->getId();

        if ($templatePrefix) {
            $templateId = trim($templatePrefix, '/').'/'.$templateId;
        }

        return static::respond($templateId, $response->getPayload(), $response->getMode());
    }
}
Make sendRequest public and add $templatePrefix option
Make sendRequest public and add $templatePrefix option
