Skip to content

Commit 1e9b872

Browse files
authored
Merge pull request #13 from mstaack/fix-lumen
fixed lumen usage b/c of missing config_path
2 parents 0ebb9f1 + 4b65b32 commit 1e9b872

File tree

3 files changed

+20
-2
lines changed

3 files changed

+20
-2
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@
2929
"autoload": {
3030
"psr-4": {
3131
"BeyondCode\\DumpServer\\": "src"
32-
}
32+
},
33+
"files": [
34+
"helpers.php"
35+
]
3336
},
3437
"autoload-dev": {
3538
"psr-4": {

helpers.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
if (!function_exists('config_path')) {
3+
/**
4+
* Get the configuration path.
5+
*
6+
* This is a polyfill for the missing shorthand function in lumen.
7+
*
8+
* @param string $path
9+
* @return string
10+
*/
11+
function config_path($path = '')
12+
{
13+
return app()->basePath('config') . ($path ? DIRECTORY_SEPARATOR . $path : $path);
14+
}
15+
}

src/DumpServerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class DumpServerCommand extends Command
2727
*
2828
* @var string
2929
*/
30-
protected $description = 'Start the dump server to collect dump information.';
30+
protected $description = 'Start the dump server to collect dump information';
3131

3232
/** @var DumpServer */
3333
private $server;

0 commit comments

Comments
 (0)