Skip to content

Commit

Permalink
Merge pull request #3 from PostScripton/dev
Browse files Browse the repository at this point in the history
Fixed ServiceProvider
  • Loading branch information
PostScripton authored Mar 26, 2021
2 parents 594a65e + 788e885 commit 4c0e101
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postscripton/money",
"description": "A convenient way to convert numbers from DB or inputs into money strings for humans",
"version": "1.0.1",
"version": "1.0.2",
"type": "library",
"license": "MIT",
"authors": [
Expand All @@ -11,7 +11,7 @@
}
],
"require": {
"php": ">=7.1"
"php": "^7.1"
},
"require-dev": {
"orchestra/testbench": "^6.15"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

namespace PostScripton\Money\ServiceProviders;
namespace PostScripton\Money;

use Illuminate\Support\ServiceProvider;
use PostScripton\Money\Currency;
use PostScripton\Money\Exceptions\CurrencyDoesNotExistException;
use PostScripton\Money\Money;
use PostScripton\Money\Exceptions\ShouldPublishConfigFileException;

class MoneyServiceProvider extends ServiceProvider
{
Expand All @@ -15,7 +14,7 @@ public function boot()

try {
Money::set(' ', '.', 1, false, Currency::code('RUB'));
} catch (CurrencyDoesNotExistException $e) {
} catch (CurrencyDoesNotExistException | ShouldPublishConfigFileException $e) {
dd($e->getMessage());
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace PostScripton\Money\Tests;

use PostScripton\Money\ServiceProviders\MoneyServiceProvider;
use PostScripton\Money\MoneyServiceProvider;

class TestCase extends \Orchestra\Testbench\TestCase
{
Expand Down

0 comments on commit 4c0e101

Please sign in to comment.