Unverified Commit 99aa9d71 authored by Roumen Damianoff's avatar Roumen Damianoff
Browse files

misc updates

parent c50ac78a
......@@ -8,4 +8,5 @@ Thumbs.db
/tests/tmp
.php_cs
/.php_cs.cache
/.phpunit.result.cache
\ No newline at end of file
/.phpunit.result.cache
.idea/
\ No newline at end of file
# Change log
## v6.01.1 (2019-09-04)
### Added
- Added support for Laravel 6
- Added new branch for development ``6.0.x-dev``
......@@ -16,4 +16,4 @@ There is no special template for creating new issues, but please when create new
## Security Reports
If you discover a security vulnerability within this package, please send an e-mail to Roumen Damianoff via [roumen@laravelium.com](mailto:roumen@laravelium.com). All security vulnerabilities will be promptly addressed.
If you discover a security vulnerability within this package, please send an e-mail to Roumen Damianoff via [roumen@damianoff.com](mailto:roumen@damianoff.com). All security vulnerabilities will be promptly addressed.
......@@ -8,7 +8,7 @@
## Installation
Run the following command and provide the latest stable version (e.g v3.1.\*) :
Run the following command and provide the latest stable version (e.g v6.0.\*) :
```bash
composer require laravelium/feed
......@@ -16,6 +16,15 @@ composer require laravelium/feed
or add the following to your `composer.json` file :
#### For Laravel 6.0
```json
"laravelium/feed": "6.0.*"
```
(development branch)
```json
"laravelium/feed": "6.0.x-dev"
```
#### For Laravel 5.8
```json
"laravelium/feed": "3.1.*"
......
......@@ -12,14 +12,20 @@
"homepage": "https://damianoff.com"
}
],
"support": {
"issues": "https://gitlab.com/Laravelium/Feed/issues",
"source": "https://gitlab.com/Laravelium/Feed",
"wiki": "https://gitlab.com/Laravelium/Feed/wikis/home"
},
"require": {
"php": ">=7.1.3",
"laravel/framework": "~5.8"
"illuminate/support": "~5.8",
"illuminate/filesystem": "~5.8"
},
"require-dev": {
"laravel/framework": "~5.8",
"phpunit/phpunit": "^7.5 || ^8.0",
"orchestra/testbench-core": "3.8.*",
"mockery/mockery": "^1.0"
"orchestra/testbench-core": "3.8.*"
},
"autoload": {
"psr-0": {
......@@ -36,5 +42,7 @@
}
}
},
"minimum-stability": "dev"
"minimum-stability": "dev",
"prefer-stable": true
}
......@@ -4,16 +4,16 @@
* Feed generator class for laravel-feed package.
*
* @author Roumen Damianoff <roumen@damianoff.com>
* @version 3.1
* @version 6.0.1
* @link https://laravelium.com
* @license http://opensource.org/licenses/mit-license.php MIT License
*/
use Illuminate\Cache\Repository as CacheRepository;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Filesystem\Filesystem as Filesystem;
use Illuminate\Contracts\Cache\Repository as CacheRepository;
use Illuminate\Contracts\Config\Repository as ConfigRepository;
use Illuminate\Contracts\Routing\ResponseFactory as ResponseFactory;
use Illuminate\View\Factory as ViewFactory;
use Illuminate\Contracts\View\Factory as ViewFactory;
class Feed
{
......
<?php namespace Laravelium\Feed;
<?php
namespace Laravelium\Feed;
use Illuminate\Support\ServiceProvider;
use Laravelium\Feed\Feed;
use Illuminate\Contracts\Support\DeferrableProvider;
use Illuminate\Contracts\Container\Container;
use Illuminate\Contracts\Routing\ResponseFactory;
class FeedServiceProvider extends ServiceProvider
class FeedServiceProvider extends ServiceProvider implements DeferrableProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;
/**
* Bootstrap the application events.
*
......@@ -42,7 +38,7 @@ class FeedServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->bind('feed', function ($app) {
$this->app->bind('feed', function (Container $app) {
$config = config('feed');
return new Feed(
......@@ -50,7 +46,7 @@ class FeedServiceProvider extends ServiceProvider
$app['Illuminate\Cache\Repository'],
$app['config'],
$app['files'],
$app['Illuminate\Contracts\Routing\ResponseFactory'],
$app[ResponseFactory::class],
$app['view']
);
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment