Skip to content

Commit 1a8fdae

Browse files
committed
removes laravelium feed package
1 parent a94a1c4 commit 1a8fdae

File tree

6 files changed

+3
-172
lines changed

6 files changed

+3
-172
lines changed

src/Config/binshopsblog.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -121,18 +121,6 @@
121121
'basic_answers' => "black,dark", // comma separated list of possible answers. Don't worry about case.
122122
],
123123

124-
////////// RSS FEED
125-
126-
'rssfeed' => [
127-
128-
'should_shorten_text' => true, // boolean. Default: true. Should we shorten the text in rss feed?
129-
'text_limit' => 100, // max length of description text in the rss feed
130-
'posts_to_show_in_rss_feed' => 10, // how many posts should we show in the rss feed
131-
'cache_in_minutes' => 60, // how long (in minutes) to cache the RSS blog feed for.
132-
'description' => "Our blog post RSS feed", //description for the RSS feed
133-
'language' => "en", // see https://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
134-
],
135-
136124
////////// comments:
137125

138126
'comments' => [

src/Controllers/BinshopsRssFeedController.php

Lines changed: 0 additions & 94 deletions
This file was deleted.

src/Helpers.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,6 @@ public static function pull_flashed_message()
4343
return Session::pull(self::FLASH_MESSAGE_SESSION_KEY);
4444
}
4545

46-
/**
47-
* Use this (Helpers::rss_html_tag()) in your blade/template files, within <head>
48-
* to auto insert the links to rss feed
49-
* @return string
50-
*/
51-
public static function rss_html_tag()
52-
{
53-
54-
55-
return '<link rel="alternate" type="application/atom+xml" title="Atom RSS Feed" href="' . e(route("binshopsblog.feed")) . '?type=atom" />
56-
<link rel="alternate" type="application/rss+xml" title="XML RSS Feed" href="' . e(route("binshopsblog.feed")) . '?type=rss" />
57-
';
58-
59-
60-
}
61-
6246
/**
6347
* This method is depreciated. Just use the config() directly.
6448
* @return array

src/Requests/FeedRequest.php

Lines changed: 0 additions & 41 deletions
This file was deleted.

src/routes.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Route::group(['middleware' => ['web'], 'namespace' => '\BinshopsBlog\Controllers'], function () {
44

5-
/** The main public facing blog routes - show all posts, view a category, rss feed, view a single post, also the add comment route */
5+
/** The main public facing blog routes - show all posts, view a category, view a single post, also the add comment route */
66
Route::group(['prefix' => "/{locale}/".config('binshopsblog.blog_prefix', 'blog')], function () {
77

88
Route::get('/', 'BinshopsReaderController@index')
@@ -11,9 +11,6 @@
1111
Route::get('/search', 'BinshopsReaderController@search')
1212
->name('binshopsblog.search');
1313

14-
Route::get('/feed', 'BinshopsRssFeedController@feed')
15-
->name('binshopsblog.feed'); //RSS feed
16-
1714
Route::get('/category{subcategories}', 'BinshopsReaderController@view_category')->where('subcategories', '^[a-zA-Z0-9-_\/]+$')->name('binshopsblog.view_category');
1815

1916
// Route::get('/category/{categorySlug}',

tests/MainTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class MainTest extends \Tests\TestCase
2121
2222
/blog/...
2323
binshopsblog.index YES
24-
binshopsblog.feed YES
2524
binshopsblog.view_category no - but this is basically binshopsblog.index
2625
binshopsblog.single YES
2726
binshopsblog.comments.add_new_comment YES - tested multiple times with/without basic captcha on/off/correct/incorrect.
@@ -270,10 +269,9 @@ public function testCreatePostThenCheckIsViewableToPublic()
270269
$response = $this->get(config("binshopsblog.blog_prefix", "blog"));
271270
$response->assertDontSee($new_object_vals['slug']);
272271

273-
// must clear the cache, as the /feed is cached
272+
// must clear the cache
274273
\Artisan::call('cache:clear');
275274

276-
$response = $this->get(config("binshopsblog.blog_prefix", "blog") . "/feed");
277275
$response->assertDontSee($new_object_vals['slug']);
278276

279277
$response = $this->post($admin_panel_url . "/add_post", $new_object_vals);
@@ -290,10 +288,9 @@ public function testCreatePostThenCheckIsViewableToPublic()
290288
$response->assertSee($new_object_vals['slug']);
291289

292290

293-
// must clear the cache, as the /feed is cached
291+
// must clear the cache
294292
\Artisan::call('cache:clear');
295293

296-
$response = $this->get(config("binshopsblog.blog_prefix", "blog") . "/feed");
297294
$response->assertSee($new_object_vals['slug']);
298295
$response->assertSee($new_object_vals['title']);
299296

0 commit comments

Comments
 (0)