Skip to content

Commit

Permalink
Alias conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
MGatner committed May 16, 2021
1 parent 837c183 commit 4339db0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system/Config/BaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
use Config\Migrations;
use Config\Modules;
use Config\Pager as ConfigPager;
use Config\Services;
use Config\Services as AppServices;
use Config\Toolbar as ConfigToolbar;
use Config\Validation as ConfigValidation;
use Config\View as ConfigView;
Expand All @@ -85,7 +85,7 @@
* whereas with DI Containers there usually isn't a way for them to do this.
*
* Warning: To allow overrides by service providers do not use static calls,
* rather call out to \Config\Services instead.
* instead call out to \Config\Services (imported as AppServices).
*
* @see http://blog.ircmaxell.com/2015/11/simple-easy-risk-and-change.html
* @see http://www.infoq.com/presentations/Simple-Made-Easy
Expand Down Expand Up @@ -189,7 +189,7 @@ protected static function getSharedInstance(string $key, ...$params)
// Make sure $getShared is false
$params[] = false;

static::$instances[$key] = Services::$key(...$params);
static::$instances[$key] = AppServices::$key(...$params);
}

return static::$instances[$key];
Expand Down

0 comments on commit 4339db0

Please sign in to comment.