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 9f1cf2c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,6 +1,7 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- 7.1
Expand Down
17 changes: 9 additions & 8 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.*",
"php": "^5.5.9|^7.0",
"illuminate/console": "^5.2",
"illuminate/container": "^5.2",
"illuminate/contracts": "^5.2",
"illuminate/events": "^5.2",
"illuminate/filesystem": "^5.2",
"illuminate/support": "^5.2",
"jumilla/laravel-source-generator": "^1.1"
},
"require-dev": {
"illuminate/config": "5.2.*|5.3.*",
"phpunit/phpunit": "~4.0",
"illuminate/config": "^5.2",
"phpunit/phpunit": "^4.0|^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 9f1cf2c

Please sign in to comment.