From a79e8ed3a0090739deebfc9a24cf7c08ccea7841 Mon Sep 17 00:00:00 2001 From: Aleksandr Zelenin Date: Sun, 2 Nov 2014 23:38:42 +0300 Subject: [PATCH] 0.0.2 --- RssView.php | 19 ++++++++++++------- composer.json | 20 ++++++++++---------- 2 files changed, 22 insertions(+), 17 deletions(-) diff --git a/RssView.php b/RssView.php index dc9c9a1..3c20cb2 100644 --- a/RssView.php +++ b/RssView.php @@ -10,23 +10,24 @@ class RssView extends BaseListView { - /** @var Feed $feed */ + /** @var Feed */ public $feed; - /** @var array $channel */ + /** @var array */ public $channel; - /** @var array $items */ + /** @var array */ public $items; - /** @var array $requiredChannelElements */ + /** @var array */ public $requiredChannelElements = ['title', 'link', 'description']; - /** @var array $requiredItemElements */ + /** @var array */ public $requiredItemElements = ['title', 'description', 'link', 'pubDate']; - /** @var array $channelAttributes */ + /** @var array */ private $channelAttributes = []; - /** @var array $itemAttributes */ + /** @var array */ private $itemAttributes = []; /** + * @inheritdoc * @throws InvalidConfigException */ public function init() @@ -50,6 +51,7 @@ public function init() } /** + * @inheritdoc * @return string|Feed */ public function run() @@ -84,6 +86,9 @@ public function renderChannel() } } + /** + * @inheritdoc + */ public function renderItems() { $models = $this->dataProvider->getModels(); diff --git a/composer.json b/composer.json index ee463f1..bbe7f19 100644 --- a/composer.json +++ b/composer.json @@ -1,11 +1,15 @@ { "name": "zelenin/yii2-rss", "description": "Yii2 RSS extension adds RSS-feed to your site", - "version": "0.0.1", + "version": "0.0.2", "type": "yii2-extension", - "keywords": ["yii2", "rss", "feed"], + "keywords": [ + "yii2", + "rss", + "feed" + ], "homepage": "https://github.com/zelenin/yii2-rss", - "time": "2014-07-05", + "time": "2014-11-02", "license": "MIT", "authors": [ { @@ -16,18 +20,14 @@ } ], "support": { - "issues": "https://github.com/zelenin/yii2-rss/issues", - "source": "https://github.com/zelenin/yii2-rss" + "issues": "https://github.com/zelenin/yii2-rss/issues", "source": "https://github.com/zelenin/yii2-rss" }, "require": { - "php": ">=5.4.0", - "yiisoft/yii2": "*", - "zelenin/rss-generator": "2.0.0" + "yiisoft/yii2": "~2", "zelenin/rss-generator": "2.0.*@stable" }, "autoload": { "psr-4": { "Zelenin\\yii\\extensions\\Rss\\": "" } - }, - "minimum-stability": "stable" + } }