Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61b4224

Browse files
committed
Merge branch 'release/v2.1.0'
* release/v2.1.0: Bump version Tweak service provider publishes functionality and console tools Drop PHP 7.1 travis test Update composer deps
2 parents 969ba2a + a064e6a commit 61b4224

File tree

5 files changed

+13
-17
lines changed

5 files changed

+13
-17
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
language: php
22

33
php:
4-
- 7.1
54
- 7.2
65
- 7.3
76

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
55
This project adheres to [Semantic Versioning](CONTRIBUTING.md).
66

77

8+
## [v2.1.0] - 2019-06-02
9+
- Update composer deps
10+
- Drop PHP 7.1 travis test
11+
- Tweak service provider publishes functionality and console tools
12+
813
## [v2.0.0] - 2019-03-03
914
- Rename environment variable QUEUE_DRIVER to QUEUE_CONNECTION
1015
- Require PHP 7.2 & Laravel 5.8

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
[![Packagist](https://img.shields.io/packagist/v/rinvex/laravel-widgets.svg?label=Packagist&style=flat-square)](https://packagist.org/packages/rinvex/laravel-widgets)
66
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/rinvex/laravel-widgets.svg?label=Scrutinizer&style=flat-square)](https://scrutinizer-ci.com/g/rinvex/laravel-widgets/)
7-
[![Code Climate](https://img.shields.io/codeclimate/github/rinvex/laravel-widgets.svg?label=CodeClimate&style=flat-square)](https://codeclimate.com/github/rinvex/laravel-widgets)
87
[![Travis](https://img.shields.io/travis/rinvex/laravel-widgets.svg?label=TravisCI&style=flat-square)](https://travis-ci.org/rinvex/laravel-widgets)
98
[![StyleCI](https://styleci.io/repos/98805007/shield)](https://styleci.io/repos/98805007)
109
[![License](https://img.shields.io/packagist/l/rinvex/laravel-widgets.svg?label=License&style=flat-square)](https://github.com/rinvex/laravel-widgets/blob/develop/LICENSE)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"require-dev": {
4848
"codedungeon/phpunit-result-printer": "^0.26.0",
4949
"illuminate/container": "~5.8.0",
50-
"phpunit/phpunit": "^8.0.0"
50+
"phpunit/phpunit": "^8.1.0"
5151
},
5252
"autoload": {
5353
"files": [

src/Providers/WidgetsServiceProvider.php

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66

77
use Illuminate\Routing\Router;
88
use Illuminate\Support\ServiceProvider;
9+
use Rinvex\Support\Traits\ConsoleTools;
910
use Rinvex\Widgets\Factories\WidgetFactory;
1011
use Illuminate\View\Compilers\BladeCompiler;
1112
use Rinvex\Widgets\Console\Commands\WidgetMakeCommand;
1213

1314
class WidgetsServiceProvider extends ServiceProvider
1415
{
16+
use ConsoleTools;
17+
1518
/**
1619
* Register the service provider.
1720
*
@@ -26,7 +29,7 @@ public function register(): void
2629
$this->registerWidgetCollection();
2730

2831
// Register console commands
29-
! $this->app->runningInConsole() || $this->registerCommands();
32+
! $this->app->runningInConsole() || $this->registerWidgetCommands();
3033
}
3134

3235
/**
@@ -68,7 +71,8 @@ public function boot(Router $router): void
6871
$this->loadViewsFrom(__DIR__.'/../../resources/views', 'rinvex/widgets');
6972

7073
// Publish Resources
71-
! $this->app->runningInConsole() || $this->publishResources();
74+
! $this->app->runningInConsole() || $this->publishesViews('rinvex/laravel-widgets');
75+
! $this->app->runningInConsole() || $this->publishesConfig('rinvex/laravel-widgets');
7276

7377
// Register blade extensions
7478
$this->registerBladeExtensions();
@@ -100,23 +104,12 @@ protected function loadRoutes(Router $router): void
100104
}
101105
}
102106

103-
/**
104-
* Publish resources.
105-
*
106-
* @return void
107-
*/
108-
protected function publishResources(): void
109-
{
110-
$this->publishes([realpath(__DIR__.'/../../config/config.php') => config_path('rinvex.widgets.php')], 'rinvex-widgets-config');
111-
$this->publishes([realpath(__DIR__.'/../../resources/views') => resource_path('views/vendor/rinvex/laravel-widgets')], 'rinvex-widgets-views');
112-
}
113-
114107
/**
115108
* Register console commands.
116109
*
117110
* @return void
118111
*/
119-
protected function registerCommands(): void
112+
protected function registerWidgetCommands(): void
120113
{
121114
// Register artisan commands
122115
$this->app->singleton('command.rinvex.widgets.make', function ($app) {

0 commit comments

Comments
 (0)