- Splitted cronard definitions

- Added TMP_PATH env var
- Added support for Events from attributes
- Added Negundo client support
This commit is contained in:
mcndave committed 2023-03-29 13:59:59 +00:00
1 parent 946281c884
commit f482c19df5
23 files changed
+163 -82

No files matched your search

+6 -1
View File
@@ -2,7 +2,7 @@
namespace Lean;
use Lean\Response\{ PdfResponse, ImageResponse, DownloadResponse };
use Lean\Response\{FileDownloadResponse, PdfResponse, ImageResponse, DownloadResponse};
use Picea,
Picea\Ui\Method\FormContext;
@@ -112,6 +112,11 @@ trait ControllerTrait {
return new ImageResponse($data, $code, $headers);
}
public static function renderAsset(string $path, int $code = 200, array $headers = []) : ResponseInterface
{
return new FileDownloadResponse($path, $code, $headers);
}
public function fromResponse(ResponseInterface $response)
{
if ( $response->getStatusCode() === 200 ) {