Skip to content
This repository was archived by the owner on Jul 8, 2023. It is now read-only.

Commit fe66d3d

Browse files
Merge pull request #2 from guillermoandrae/master
Removed chdir()
2 parents 84ef54b + dc13b67 commit fe66d3d

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

bin/hrphp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99

1010
// set the default time zone, just in case
1111
date_default_timezone_set('America/New_York');
12+
1213
// define some application constants
1314
if (!defined('APPLICATION_ENV')) {
1415
define('APPLICATION_ENV', 'production');
1516
}
16-
1717
define('APPLICATION_PATH', dirname(__DIR__));
18-
chdir(APPLICATION_PATH);
18+
define('HRPHP_URL', 'http://hrphp.org');
1919

2020
// load dependencies!
2121
require APPLICATION_PATH . '/vendor/autoload.php';

src/config/application.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
use Hrphp\Cli\Command\PingCommand;
1111
use GuzzleHttp\Client as GuzzleClient;
1212

13-
// portal URL
14-
define('HRPHP_URL', 'http://hrphp.org');
15-
16-
// configure the application
1713
try {
1814
$client = new GuzzleClient();
1915
$application = new Application('HRPHP CLI', '@package_version@');

tests/bootstrap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
define('APPLICATION_ENV', 'test');
1212

1313
define('APPLICATION_PATH', dirname(__DIR__));
14-
chdir(APPLICATION_PATH);
14+
define('HRPHP_URL', 'http://hrphp.org');
1515

1616
require 'vendor/autoload.php';
1717
require 'src/config/application.php';

0 commit comments

Comments
 (0)