Skip to content

Commit

Permalink
Update namespace to make it compatible with other libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
lokhman committed Aug 30, 2016
1 parent 91f7b87 commit 2e432b7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ Next, add all your defaults to the config files, e.g.:
### Register
Now register service provider in your Silex application:

use Lokhman\Silex\Config\ConfigServiceProvider;
use Lokhman\Silex\Provider\ConfigServiceProvider;

$app->register(new ConfigServiceProvider(__DIR__ . '/../../config'));

`$dir` parameter refers to a configuration folder path with `.json` files.
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lokhman/silex-config",
"type": "library",
"description": "Simple JSON configuration provider for Silex micro-framework",
"keywords": ["config", "json", "silex"],
"keywords": ["silex", "provider", "config", "json"],
"license": "MIT",
"authors": [
{
Expand All @@ -11,7 +11,7 @@
}
],
"autoload": {
"psr-4": { "Lokhman\\Silex\\Config\\": "src" }
"psr-4": { "Lokhman\\Silex\\Provider\\": "src/" }
},
"require": {
"silex/silex": "~2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/ConfigServiceProvider.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Lokhman\Silex\Config;
namespace Lokhman\Silex\Provider;

use Pimple\Container;
use Pimple\ServiceProviderInterface;
Expand All @@ -22,7 +22,7 @@ class ConfigServiceProvider implements ServiceProviderInterface {
protected $dir;

/**
* Class constructor.
* Constructor.
*
* @param string $dir
* @param array $params
Expand Down

0 comments on commit 2e432b7

Please sign in to comment.