Skip to content

Commit 6054cc9

Browse files
Remove basePath parameter (#177)
Co-authored-by: Taylor Otwell <[email protected]>
1 parent 9c1b31a commit 6054cc9

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Commands/ReloadCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function reloadRoadRunnerServer()
7676

7777
$this->info('Reloading workers...');
7878

79-
$inspector->reloadServer(base_path());
79+
$inspector->reloadServer();
8080

8181
return 0;
8282
}

src/RoadRunner/ServerProcessInspector.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,13 @@ public function serverIsRunning(): bool
3232
/**
3333
* Reload the RoadRunner workers.
3434
*
35-
* @param string $basePath
3635
* @return void
3736
*/
38-
public function reloadServer(string $basePath): void
37+
public function reloadServer(): void
3938
{
4039
$this->processFactory->createProcess([
4140
'./rr', 'reset',
42-
], $basePath, null, null, null)->mustRun();
41+
], base_path(), null, null, null)->mustRun();
4342
}
4443

4544
/**

tests/RoadRunnerServerProcessInspectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ public function test_roadrunner_server_process_can_be_reloaded()
5757

5858
$processFactory->shouldReceive('createProcess')->with(
5959
['./rr', 'reset'],
60-
'base-path',
60+
base_path(),
6161
null,
6262
null,
6363
null
6464
)->andReturn($process = Mockery::mock('stdClass'));
6565

6666
$process->shouldReceive('mustRun')->once()->andReturn(0);
6767

68-
$inspector->reloadServer('base-path');
68+
$inspector->reloadServer();
6969
}
7070
}

0 commit comments

Comments
 (0)