Skip to content

Commit

Permalink
initial code for minkbear
Browse files Browse the repository at this point in the history
  • Loading branch information
minkbear committed Aug 4, 2015
1 parent 92e1b85 commit 131b39c
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Require this package in your composer.json:

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

'TheECMGroup\Setting\SettingServiceProvider',
'minkbear\Setting\SettingServiceProvider',

And publish the config file

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

## Usage

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "the-ecm-group/setting",
"name": "minkbear/setting",
"description": "Persistent configuration settings for Laravel - Create, Read, Update and Delete settings stored in files using JSON",
"keywords": ["laravel", "config"],
"license": "MIT",
Expand All @@ -18,7 +18,7 @@
},
"autoload": {
"psr-0": {
"TheECMGroup\\Setting": "src/"
"minkbear\\Setting": "src/"
}
},
"minimum-stability": "dev"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace TheECMGroup\Setting\Facades;
<?php namespace minkbear\Setting\Facades;

use Illuminate\Support\Facades\Facade;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace TheECMGroup\Setting;
<?php namespace minkbear\Setting;

/*
* ---------------------------------------------
Expand Down Expand Up @@ -44,7 +44,7 @@

/**
* Class Setting
* @package TheECMGroup\Setting
* @package minkbear\Setting
*/
class Setting {

Expand Down Expand Up @@ -85,7 +85,7 @@ public function __construct($path, $filename, $fallback = null)
/**
* Set the path to the file to use
* @param string $path The path to the file
* @return \TheECMGroup\Setting\Setting
* @return \minkbear\Setting\Setting
*/
public function path($path)
{
Expand All @@ -96,7 +96,7 @@ public function path($path)
/**
* Set the filename to use
* @param string $filename The filename
* @return \TheECMGroup\Setting\Setting
* @return \minkbear\Setting\Setting
*/
public function filename($filename)
{
Expand Down Expand Up @@ -177,7 +177,7 @@ public function has($searchKey)
* Load the file in to $this->settings so values can be used immediately
* @param string $path The path to be used
* @param string $filename The filename to be used
* @return \TheECMGroup\Setting\Setting
* @return \minkbear\Setting\Setting
*/
public function load($path = null, $filename = null)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php

namespace TheECMGroup\Setting;
namespace minkbear\Setting;

use Illuminate\Support\ServiceProvider;
use TheECMGroup\Setting\interfaces\LaravelFallbackInterface;
use minkbear\Setting\interfaces\LaravelFallbackInterface;

class SettingServiceProvider extends ServiceProvider {

Expand Down Expand Up @@ -42,7 +42,7 @@ public function register() {
$this->app->booting(function($app) {
if ($app['config']['setting.autoAlias']) {
$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('Setting', 'TheECMGroup\Setting\Facades\Setting');
$loader->alias('Setting', 'minkbear\Setting\Facades\Setting');
}
});
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?php namespace TheECMGroup\Setting\interfaces;
<?php namespace minkbear\Setting\interfaces;

/**
* Class FallbackInterface
* @package TheECMGroup\Setting\interfaces
* @package minkbear\Setting\interfaces
*/
interface FallbackInterface {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

namespace TheECMGroup\Setting\interfaces;
namespace minkbear\Setting\interfaces;

/**
* Class LaravelFallbackInterface
* @package TheECMGroup\Setting\interfaces
* @package minkbear\Setting\interfaces
*/
class LaravelFallbackInterface implements FallbackInterface {

Expand Down
2 changes: 1 addition & 1 deletion tests/SettingTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

use TheECMGroup\Setting\Setting;
use minkbear\Setting\Setting;

/**
* Class SettingTest
Expand Down

0 comments on commit 131b39c

Please sign in to comment.