Skip to content

Commit

Permalink
Drop ..\Services\.. namespace as it broke the package
Browse files Browse the repository at this point in the history
  • Loading branch information
Mulkave committed Jun 8, 2013
1 parent c1ac587 commit 6cb6b53
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

"autoload": {
"psr-0": {
"Vinelab\\Services\\Country": "src/"
"Vinelab\\Country": "src/"
}
},
"minimum-stability": "dev"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Country;
<?php namespace Vinelab\Country;

use Illuminate\Support\ServiceProvider;

Expand Down Expand Up @@ -28,14 +28,15 @@ public function boot()
*/
public function register()
{
$this->app['country'] = $this->app->share(function($app){
$this->app->bind('vinelab.country', function()
{
return new Guide($this->app['config']);
});

$this->app->booting(function() {

$loader = \Illuminate\Foundation\AliasLoader::getInstance();
$loader->alias('Country', 'Vinelab\Services\Country\Facades\Guide');
$loader->alias('Country', 'Vinelab\Country\Facades\Guide');
});
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Country\Facades;
<?php namespace Vinelab\Country\Facades;

use Illuminate\Support\Facades\Facade;

Expand All @@ -9,6 +9,6 @@
*
* @return string
*/
protected static function getFacadeAccessor() { return 'country'; }
protected static function getFacadeAccessor() { return 'vinelab.country'; }

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php namespace Vinelab\Services\Country;
<?php namespace Vinelab\Country;

Class Guide {

Expand Down

0 comments on commit 6cb6b53

Please sign in to comment.