Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Add Laravel 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Sep 13, 2019
1 parent d471221 commit 6a4a0e9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 40 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0 (13 Sep 2019)](https://github.com/dmitry-ivanov/dark-sky-api/compare/v1.1.0...v1.0.0)
### Added
- Laravel 6 support.

## 1.0.0 (10 Jan 2019)
### Added
- Initial release
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"psr/http-message": "^1.0"
},
"require-dev": {
"illuminate/contracts": "^5.1",
"illuminate/support": "^5.1",
"illuminate/contracts": "^5.1|^6.0",
"illuminate/support": "^5.1|^6.0",
"mockery/mockery": "^0.9|^1.0",
"phpunit/phpunit": "^4.0|^5.0|^6.0|^7.0",
"phpunit/phpunit": "^4.0|^5.0|^6.0|^7.0|^8.0",
"vlucas/phpdotenv": "^3.3"
},
"autoload": {
Expand Down
17 changes: 0 additions & 17 deletions src/Adapters/Laravel/DarkSkyApiServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@

class DarkSkyApiServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = true;

/**
* Register the service provider.
*
Expand Down Expand Up @@ -65,14 +58,4 @@ public function boot()
{
$this->publishes([__DIR__.'/config/dark-sky-api.php' => config_path('dark-sky-api.php')]);
}

/**
* Get the provided services.
*
* @return array
*/
public function provides()
{
return [Service::class];
}
}
20 changes: 0 additions & 20 deletions tests/Adapters/Laravel/DarkSkyApiServiceProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,6 @@ public function it_extends_the_base_service_provider_class()
$this->assertSubclassOf(DarkSkyApiServiceProvider::class, ServiceProvider::class);
}

/** @test */
public function it_is_deferred()
{
$app = spy(Application::class);

$serviceProvider = new DarkSkyApiServiceProvider($app);

$this->assertTrue($serviceProvider->isDeferred());
}

/** @test */
public function it_provides_binding_for_the_api_service_class()
{
$app = spy(Application::class);

$serviceProvider = new DarkSkyApiServiceProvider($app);

$this->assertEquals([Service::class], $serviceProvider->provides());
}

/** @test */
public function it_merges_the_configuration_while_the_registering()
{
Expand Down

0 comments on commit 6a4a0e9

Please sign in to comment.