Skip to content

Commit

Permalink
Use ConfigFactory instead of instantiating a Config object directly.
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera committed Aug 1, 2016
1 parent 305fde0 commit 86e02d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Country.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace BrightNucleus\CountryCodes;

use BrightNucleus\Config\Config;
use BrightNucleus\Config\ConfigFactory;
use BrightNucleus\Config\ConfigInterface;

/**
Expand Down Expand Up @@ -108,7 +108,7 @@ public static function getCodeFromName($name, $fallback = 'US')
protected static function initData()
{
if (! self::$data) {
self::$data = new Config(self::getLocation() . '.php');
self::$data = ConfigFactory::create(self::getLocation() . '.php');
}

return self::$data;
Expand Down

0 comments on commit 86e02d4

Please sign in to comment.