mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-01-23 12:48:01 -05:00
* Typed view model classes * Add ability to provide a typed view model class to a controller * Use `::class` instead of string for referring to classes * Examplified with `stats` and `javascript` controllers / views (more to do) * Also useful for extensions (my usecase today), which did not have the ability to define own view model attributes before. * Typo
17 lines
300 B
PHP
17 lines
300 B
PHP
<?php
|
|
|
|
final class FreshRSS_ViewJavascript extends FreshRSS_View {
|
|
|
|
/** @var array<FreshRSS_Category> */
|
|
public $categories;
|
|
/** @var array<FreshRSS_Feed> */
|
|
public $feeds;
|
|
/** @var array<FreshRSS_Tag> */
|
|
public $tags;
|
|
|
|
/** @var string */
|
|
public $nonce;
|
|
/** @var string */
|
|
public $salt1;
|
|
}
|