56 lines
1.4 KiB
PHP
56 lines
1.4 KiB
PHP
<?php
|
|
|
|
return [
|
|
'feeds' => [
|
|
'main' => [
|
|
/*
|
|
* Here you can specify which class and method will return
|
|
* the items that should appear in the feed. For example:
|
|
* 'App\Model@getAllFeedItems'
|
|
*
|
|
* You can also pass an argument to that method:
|
|
* ['App\Model@getAllFeedItems', 'argument']
|
|
*/
|
|
'items' => '',
|
|
|
|
/*
|
|
* The feed will be available on this url.
|
|
*/
|
|
'url' => '',
|
|
|
|
'title' => 'My feed',
|
|
'description' => 'The description of the feed.',
|
|
'language' => 'en-US',
|
|
|
|
/*
|
|
* The view that will render the feed.
|
|
*/
|
|
'view' => 'feed::atom',
|
|
|
|
/*
|
|
* The type to be used in the <link> tag
|
|
*/
|
|
'type' => 'application/atom+xml',
|
|
],
|
|
'news' => [
|
|
'items' => ['App\NewsItem', 'getFeedItems'],
|
|
|
|
'url' => '/feed',
|
|
|
|
'title' => 'All newsitems on mysite.com',
|
|
|
|
/*
|
|
* The format of the feed. Acceptable values are 'rss', 'atom', or 'json'.
|
|
*/
|
|
'format' => 'atom',
|
|
|
|
/*
|
|
* Custom view for the items.
|
|
*
|
|
* Defaults to feed::feed if not present.
|
|
*/
|
|
'view' => 'feeds.news',
|
|
],
|
|
],
|
|
];
|