mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
make MIME type argument primary
This commit is contained in:
parent
2cb2205b1a
commit
1843d72ff5
2 changed files with 6 additions and 4 deletions
|
|
@ -13,6 +13,7 @@ use \Yggverse\Yoda\Entity\Browser\Container\Page\Content;
|
|||
use \Yggverse\Yoda\Entity\Browser\Container\Page\Response;
|
||||
|
||||
use \Yggverse\Yoda\Model\Connection;
|
||||
use \Yggverse\Yoda\Model\Filesystem;
|
||||
|
||||
class Page
|
||||
{
|
||||
|
|
@ -202,8 +203,8 @@ class Page
|
|||
|
||||
// Update content
|
||||
$this->content->set(
|
||||
$connection->getData(),
|
||||
$connection->getMime()
|
||||
$connection->getMime(),
|
||||
$connection->getData()
|
||||
);
|
||||
|
||||
// Hide progressbar
|
||||
|
|
@ -226,6 +227,7 @@ class Page
|
|||
|
||||
// Update content
|
||||
$this->content->set(
|
||||
Filesystem::MIME_TEXT_PLAIN,
|
||||
_('Response time reached')
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -63,8 +63,8 @@ class Content
|
|||
}
|
||||
|
||||
public function set(
|
||||
?string $data,
|
||||
?string $mime
|
||||
?string $mime,
|
||||
?string $data
|
||||
): void
|
||||
{
|
||||
$this->_source = $data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue