Skip to content

Commit 131b39c

Browse files
committed
initial code for minkbear
1 parent 92e1b85 commit 131b39c

File tree

8 files changed

+18
-18
lines changed

8 files changed

+18
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ Require this package in your composer.json:
2323

2424
And add the ServiceProvider to the providers array in app/config/app.php
2525

26-
'TheECMGroup\Setting\SettingServiceProvider',
26+
'minkbear\Setting\SettingServiceProvider',
2727

2828
And publish the config file
2929

30-
php artisan vendor:publish --provider="TheECMGroup\Setting\SettingServiceProvider"
30+
php artisan vendor:publish --provider="minkbear\Setting\SettingServiceProvider"
3131

3232
## Usage
3333

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "the-ecm-group/setting",
2+
"name": "minkbear/setting",
33
"description": "Persistent configuration settings for Laravel - Create, Read, Update and Delete settings stored in files using JSON",
44
"keywords": ["laravel", "config"],
55
"license": "MIT",
@@ -18,7 +18,7 @@
1818
},
1919
"autoload": {
2020
"psr-0": {
21-
"TheECMGroup\\Setting": "src/"
21+
"minkbear\\Setting": "src/"
2222
}
2323
},
2424
"minimum-stability": "dev"

src/TheECMGroup/Setting/Facades/Setting.php renamed to src/minkbear/Setting/Facades/Setting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace TheECMGroup\Setting\Facades;
1+
<?php namespace minkbear\Setting\Facades;
22

33
use Illuminate\Support\Facades\Facade;
44

src/TheECMGroup/Setting/Setting.php renamed to src/minkbear/Setting/Setting.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php namespace TheECMGroup\Setting;
1+
<?php namespace minkbear\Setting;
22

33
/*
44
* ---------------------------------------------
@@ -44,7 +44,7 @@
4444

4545
/**
4646
* Class Setting
47-
* @package TheECMGroup\Setting
47+
* @package minkbear\Setting
4848
*/
4949
class Setting {
5050

@@ -85,7 +85,7 @@ public function __construct($path, $filename, $fallback = null)
8585
/**
8686
* Set the path to the file to use
8787
* @param string $path The path to the file
88-
* @return \TheECMGroup\Setting\Setting
88+
* @return \minkbear\Setting\Setting
8989
*/
9090
public function path($path)
9191
{
@@ -96,7 +96,7 @@ public function path($path)
9696
/**
9797
* Set the filename to use
9898
* @param string $filename The filename
99-
* @return \TheECMGroup\Setting\Setting
99+
* @return \minkbear\Setting\Setting
100100
*/
101101
public function filename($filename)
102102
{
@@ -177,7 +177,7 @@ public function has($searchKey)
177177
* Load the file in to $this->settings so values can be used immediately
178178
* @param string $path The path to be used
179179
* @param string $filename The filename to be used
180-
* @return \TheECMGroup\Setting\Setting
180+
* @return \minkbear\Setting\Setting
181181
*/
182182
public function load($path = null, $filename = null)
183183
{

src/TheECMGroup/Setting/SettingServiceProvider.php renamed to src/minkbear/Setting/SettingServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace TheECMGroup\Setting;
3+
namespace minkbear\Setting;
44

55
use Illuminate\Support\ServiceProvider;
6-
use TheECMGroup\Setting\interfaces\LaravelFallbackInterface;
6+
use minkbear\Setting\interfaces\LaravelFallbackInterface;
77

88
class SettingServiceProvider extends ServiceProvider {
99

@@ -42,7 +42,7 @@ public function register() {
4242
$this->app->booting(function($app) {
4343
if ($app['config']['setting.autoAlias']) {
4444
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
45-
$loader->alias('Setting', 'TheECMGroup\Setting\Facades\Setting');
45+
$loader->alias('Setting', 'minkbear\Setting\Facades\Setting');
4646
}
4747
});
4848
}

src/TheECMGroup/Setting/interfaces/FallbackInterface.php renamed to src/minkbear/Setting/interfaces/FallbackInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<?php namespace TheECMGroup\Setting\interfaces;
1+
<?php namespace minkbear\Setting\interfaces;
22

33
/**
44
* Class FallbackInterface
5-
* @package TheECMGroup\Setting\interfaces
5+
* @package minkbear\Setting\interfaces
66
*/
77
interface FallbackInterface {
88

src/TheECMGroup/Setting/interfaces/LaravelFallbackInterface.php renamed to src/minkbear/Setting/interfaces/LaravelFallbackInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace TheECMGroup\Setting\interfaces;
3+
namespace minkbear\Setting\interfaces;
44

55
/**
66
* Class LaravelFallbackInterface
7-
* @package TheECMGroup\Setting\interfaces
7+
* @package minkbear\Setting\interfaces
88
*/
99
class LaravelFallbackInterface implements FallbackInterface {
1010

tests/SettingTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
use TheECMGroup\Setting\Setting;
3+
use minkbear\Setting\Setting;
44

55
/**
66
* Class SettingTest

0 commit comments

Comments
 (0)