- Splitted cronard definitions
- Added TMP_PATH env var - Added support for Events from attributes - Added Negundo client support
This commit is contained in:
1 parent
946281c884
commit
f482c19df5
23 files changed
+163
-82
No files matched your search
@@ -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 ) {
|
||||
|
||||
Reference in new issue
Block a user