- Added a new Email defintion (which will soon see it's components changed)
- Added a new post-install script for composer which adds a project skeleton "ready to use". - Error 500 are now handled properly in production; waiting to see if adjustements will be required before adding other code pages.
This commit is contained in:
1 parent
09b3e47c19
commit
01bb926ca7
30 files changed
+887
-2
No files matched your search
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace Lean;
|
||||
|
||||
use CSLSJ\Common\RequestResponse\DownloadResponse;
|
||||
use CSLSJ\Common\RequestResponse\ImageResponse;
|
||||
use CSLSJ\Common\RequestResponse\{ PdfResponse, ImageResponse, DownloadResponse };
|
||||
|
||||
use Picea,
|
||||
Picea\Ui\Method\FormContext;
|
||||
|
||||
@@ -63,6 +63,11 @@ trait ControllerTrait {
|
||||
return new RedirectResponse($url, $code, $headers);
|
||||
}
|
||||
|
||||
public function renderPdf($rawdata, int $status = 200, array $headers = []) : PdfResponse
|
||||
{
|
||||
return new PdfResponse($rawdata, $status, $headers);
|
||||
}
|
||||
|
||||
public static function renderText(string $html, int $code = 200, array $headers = []) : ResponseInterface
|
||||
{
|
||||
return new TextResponse($html, $code, $headers);
|
||||
|
||||
Reference in new issue
Block a user