generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: change namespace to RajaOngkir and remove unused dependencies BREAKING CHANGE: provider renamed to Kodepintar\LaravelRajaOngkir\RajaOngkir * chore: update changelog * Fix styling Co-authored-by: axmad386 <axmad386@users.noreply.github.com>
- Loading branch information
Showing
17 changed files
with
101 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
/psalm.xml export-ignore | ||
/psalm.xml.dist export-ignore | ||
/testbench.yaml export-ignore | ||
/.chglog export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ testbench.yaml | |
vendor | ||
node_modules | ||
.php-cs-fixer.cache | ||
.chglog/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
# Changelog | ||
<a name="v2.0.0"></a> | ||
## [v2.0.0](https://github.com/kodepintar/laravel-rajaongkir/compare/v1.0.0...v2.0.0) (2021-11-04) | ||
|
||
All notable changes to `laravel-rajaongkir` will be documented in this file. | ||
### Refactor | ||
|
||
## 1.0.0 - 202X-XX-XX | ||
* change namespace to RajaOngkir and remove unused dependencies | ||
|
||
- initial release | ||
### BREAKING CHANGE | ||
|
||
|
||
provider renamed to Kodepintar\LaravelRajaOngkir\RajaOngkir | ||
|
||
|
||
<a name="v1.0.0"></a> | ||
## v1.0.0 (2021-10-07) | ||
|
||
### Docs | ||
|
||
* add README-ID.md ([#4](https://github.com/kodepintar/laravel-rajaongkir/issues/4)) | ||
* change readme ([#2](https://github.com/kodepintar/laravel-rajaongkir/issues/2)) | ||
|
||
### Fix | ||
|
||
* update readme and fix load config ([#5](https://github.com/kodepintar/laravel-rajaongkir/issues/5)) | ||
|
||
### Refactor | ||
|
||
* simplify RajaOngkir API Call ([#1](https://github.com/kodepintar/laravel-rajaongkir/issues/1)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Kodepintar\LaravelRajaOngkir\Facades; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
use Kodepintar\LaravelRajaOngkir\RajaOngkir as Accessor; | ||
|
||
/** | ||
* @see \Kodepintar\LaravelRajaOngkir\LaravelRajaOngkir | ||
*/ | ||
class RajaOngkir extends Facade | ||
{ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return Accessor::class; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
namespace Kodepintar\LaravelRajaOngkir; | ||
|
||
use Illuminate\Support\Facades\App; | ||
use Illuminate\Support\ServiceProvider; | ||
|
||
class RajaOngkirServiceProvider extends ServiceProvider | ||
{ | ||
public function register(): void | ||
{ | ||
$this->mergeConfigFrom(__DIR__ . '/../config/rajaongkir.php', 'rajaongkir'); | ||
} | ||
|
||
public function boot(): void | ||
{ | ||
$this->publishes( | ||
[__DIR__ . '/../config/rajaongkir.php' => App::configPath('rajaongkir.php')], | ||
'rajaongkir-config' | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
it('can load rajangkir config', function () { | ||
/** @var Kodepintar\LaravelRajaongkir\Tests\TestCase $this */ | ||
/** @var Kodepintar\LaravelRajaOngkir\Tests\TestCase $this */ | ||
$this->assertEquals(config('rajaongkir.ACCOUNT_TYPE'), 'starter'); | ||
$this->assertEquals(config('rajaongkir.API_KEY'), 'somerandomstring'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
|
||
use Kodepintar\LaravelRajaongkir\Tests\TestCase; | ||
use Kodepintar\LaravelRajaOngkir\Tests\TestCase; | ||
|
||
uses(TestCase::class)->in(__DIR__); |
Oops, something went wrong.