Skip to content

Commit

Permalink
Revert folder structure for PSR-4 compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Jun 17, 2015
1 parent decfe6a commit 191b1e5
Show file tree
Hide file tree
Showing 45 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -24,7 +24,7 @@
},
"autoload": {
"psr-4": {
"Stevebauman\\Inventory\\": "src/Stevebauman/Inventory/"
"Stevebauman\\Inventory\\": "src/"
}
},
"autoload-dev":
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -14,7 +14,7 @@ class InventoryServiceProvider extends ServiceProvider
*
* @var string
*/
const VERSION = '1.7.3';
const VERSION = '1.7.4';

/**
* Stores the package configuration separator
Expand Down Expand Up @@ -48,7 +48,7 @@ public function boot()
* If the package method exists, we're using Laravel 4, if not, we're on 5
*/
if (method_exists($this, 'package')) {
$this->package('stevebauman/inventory');
$this->package('stevebauman/inventory', 'stevebauman/inventory', __DIR__.'/..');
} else {
/*
* Set the proper configuration separator since
Expand All @@ -65,20 +65,20 @@ public function boot()
/*
* Load the inventory translations from the inventory lang folder
*/
$this->loadTranslationsFrom(__DIR__.'../../../lang', 'inventory');
$this->loadTranslationsFrom(__DIR__.'/lang', 'inventory');

/*
* Assign the configuration as publishable, and tag it as 'config'
*/
$this->publishes([
__DIR__.'../../../config/config.php' => config_path('inventory.php'),
__DIR__.'/config/config.php' => config_path('inventory.php'),
], 'config');

/*
* Assign the migrations as publishable, and tag it as 'migrations'
*/
$this->publishes([
__DIR__.'../../../migrations/' => base_path('database/migrations'),
__DIR__.'/migrations/' => base_path('database/migrations'),
], 'migrations');
}
}
Expand Down Expand Up @@ -121,7 +121,7 @@ public function register()
/*
* Include the helpers file
*/
include __DIR__.'../../../helpers.php';
include __DIR__.'/helpers.php';
}

/**
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 191b1e5

Please sign in to comment.