Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ final class FreshExtension_shareByEmail_Controller extends Minz_ActionController
public ?Minz_Extension $extension;

/**
* @var ShareByEmail\mailers\View
* @var ShareByEmail\Models\View
* @phpstan-ignore property.phpDocType
*/
protected $view;

public function __construct() {
parent::__construct(ShareByEmail\mailers\View::class);
parent::__construct(ShareByEmail\Models\View::class);
}

#[\Override]
Expand Down
3 changes: 2 additions & 1 deletion xExtension-ShareByEmail/Models/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

declare(strict_types=1);

namespace ShareByEmail\mailers;
namespace ShareByEmail\Models;

final class View extends \Minz_View {

public ?\FreshRSS_Entry $entry = null;
public string $content = '';
public string $rss_url = '';
public string $subject = '';
public string $to = '';
}
2 changes: 2 additions & 0 deletions xExtension-ShareByEmail/mailers/Share.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace ShareByEmail\mailers;

use ShareByEmail\Models\View;

final class Share extends \Minz_Mailer {

/**
Expand Down
2 changes: 1 addition & 1 deletion xExtension-ShareByEmail/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Share By Email",
"author": "Marien Fressinaud",
"description": "Improve the sharing by email system.",
"version": "0.3.4",
"version": "0.3.5",
"entrypoint": "ShareByEmail",
"type": "user"
}
2 changes: 1 addition & 1 deletion xExtension-ShareByEmail/views/shareByEmail/share.phtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
declare(strict_types=1);
/** @var ShareByEmail\mailers\View $this */
/** @var ShareByEmail\Models\View $this */
?>
<div class="post">
<h1><?= _t('shareByEmail.share.title') ?></h1>
Expand Down
2 changes: 1 addition & 1 deletion xExtension-ShareByEmail/views/share_mailer/article.txt.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

declare(strict_types=1);

/** @var ShareByEmail\mailers\View $this */
/** @var ShareByEmail\Models\View $this */
echo $this->content;