Skip to content

Commit

Permalink
Update composer.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jumilla committed Jan 26, 2017
1 parent 501556f commit 0af372f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
19 changes: 10 additions & 9 deletions composer.json
Expand Up @@ -12,17 +12,18 @@
}
],
"require": {
"illuminate/console": "5.2.*|5.3.*",
"illuminate/container": "5.2.*|5.3.*",
"illuminate/contracts": "5.2.*|5.3.*",
"illuminate/events": "5.2.*|5.3.*",
"illuminate/filesystem": "5.2.*|5.3.*",
"illuminate/support": "5.2.*|5.3.*",
"jumilla/laravel-source-generator": "^1.1"
"php": "^5.6|^7.0",
"illuminate/console": "^5.3",
"illuminate/container": "^5.3",
"illuminate/contracts": "^5.3",
"illuminate/events": "^5.3",
"illuminate/filesystem": "^5.3",
"illuminate/support": "^5.3",
"jumilla/laravel-source-generator": "^1.2"
},
"require-dev": {
"illuminate/config": "5.2.*|5.3.*",
"phpunit/phpunit": "~4.0",
"illuminate/config": "^5.3",
"phpunit/phpunit": "^5.0",
"mockery/mockery": "~0.9"
},
"autoload": {
Expand Down
14 changes: 11 additions & 3 deletions sources/AliasResolver.php
Expand Up @@ -3,12 +3,10 @@
namespace Jumilla\Addomnipot\Laravel;

use Illuminate\Config\Repository;
use Illuminate\Console\AppNamespaceDetectorTrait;
use Illuminate\Container\Container;

class AliasResolver
{
use AppNamespaceDetectorTrait;

/**
* @var static
*/
Expand Down Expand Up @@ -125,4 +123,14 @@ class_alias($originalClassName, $className);

return false;
}

/**
* Get the application namespace.
*
* @return string
*/
protected function getAppNamespace()
{
return Container::getInstance()->getNamespace();
}
}

0 comments on commit 0af372f

Please sign in to comment.