Skip to content

Commit

Permalink
Licence added, composer fixed (#2)
Browse files Browse the repository at this point in the history
* Licence added
* composer updated
* small fix on composer
  • Loading branch information
pablorsk authored Sep 12, 2018
1 parent a6ca5bb commit 8b6b6fe
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 11 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) 2017 Reyesoft <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
12 changes: 1 addition & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"type": "library",
"minimum-stability": "stable",
"license": "MIT",
"authors": [
{
"name": "Pablo Reyes",
Expand All @@ -22,28 +23,17 @@
"fzaninotto/faker": "~1.4"
},
"require-dev": {
"genealabs/laravel-model-caching": "0.2.63",
"orchestra/testbench": "3.4.*|3.5.*|3.6.*",
"reyesoft/ci": "0.1.3",
"squizlabs/php_codesniffer": "3.3.0",
"phpunit/phpunit": "7.2.6",
"codedungeon/phpunit-result-printer": "0.19.10",
"barryvdh/laravel-ide-helper": "2.4.3",
"doctrine/dbal": "2.7.1",
"sebastian/phpcpd": "4.0.0"
},
"autoload": {
"psr-4": {
"ArgentinaDataGenerator\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Reyesoft\\JsonApi\\ServiceProvider"
]
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests"
Expand Down
29 changes: 29 additions & 0 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?php

/**
* Copyright (C) 1997-2018 Reyesoft <[email protected]>.
*
* This file is part of JsonApiPlayground. JsonApiPlayground can not be copied and/or
* distributed without the express permission of Reyesoft
*/

declare(strict_types=1);

namespace Reyesoft\JsonApi;

use Illuminate\Support\ServiceProvider as BaseServiceProvider;

/**
* @codeCoverageIgnore
*/
class ServiceProvider extends BaseServiceProvider
{
public function register(): void
{
$this->app->singleton('Faker', function($app) {
$faker = \Faker\Factory::create();
$faker->addProvider(\ArgentinaDataGenerator\CuitFakerProvider::class);
return $faker;
});
}
}

0 comments on commit 8b6b6fe

Please sign in to comment.