Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Configuration is now loaded locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bouiboui committed Feb 21, 2016
1 parent f4700a8 commit 92501ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Tissue.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static function create($message = null, $code = null, $severity = null, $
static private function loadConfig()
{
if (null === static::$configPath) {
static::$configPath = dirname(__DIR__) . '/config/config.yaml';
static::$configPath = 'config/config.yaml';
}
if (!file_exists(static::$configPath) || !is_readable(static::$configPath)) {
throw new \ErrorException('Config file not found or unreadable.');
Expand Down
2 changes: 1 addition & 1 deletion tests/TissueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use Github\Exception\ErrorException;

define('TEST_CONFIG_PATH', dirname(__DIR__) . '/config/config.test.yaml');
define('TEST_CONFIG_PATH', 'config/config.test.yaml');

/**
* Class TissueTest
Expand Down

0 comments on commit 92501ea

Please sign in to comment.