mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-14 22:15:55 +00:00
Merge pull request #1 from beyondcode/feat/adds-build-with-config
Adds build binary with support of user configuration
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,4 +2,5 @@
|
|||||||
/.idea
|
/.idea
|
||||||
/.vscode
|
/.vscode
|
||||||
/.vagrant
|
/.vagrant
|
||||||
|
/composer.lock
|
||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
|
|||||||
@@ -17,6 +17,16 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
public function register()
|
public function register()
|
||||||
{
|
{
|
||||||
|
$configFile = implode(DIRECTORY_SEPARATOR, [
|
||||||
|
$_SERVER['HOME'],
|
||||||
|
'.expose',
|
||||||
|
'config.php'
|
||||||
|
]);
|
||||||
|
|
||||||
|
if (file_exists($configFile)) {
|
||||||
|
config()->set('expose', require_once $configFile);
|
||||||
|
}
|
||||||
|
|
||||||
$this->app->singleton(LoopInterface::class, function () {
|
$this->app->singleton(LoopInterface::class, function () {
|
||||||
return LoopFactory::create();
|
return LoopFactory::create();
|
||||||
});
|
});
|
||||||
|
|||||||
1
box.json
1
box.json
@@ -6,6 +6,7 @@
|
|||||||
"config",
|
"config",
|
||||||
"vendor"
|
"vendor"
|
||||||
],
|
],
|
||||||
|
"exclude-dev-files": false,
|
||||||
"files": [
|
"files": [
|
||||||
"composer.json"
|
"composer.json"
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -17,7 +17,11 @@
|
|||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.2.5",
|
"php": "^7.2.5",
|
||||||
"ext-json": "*",
|
"ext-json": "*"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"mockery/mockery": "^1.3.1",
|
||||||
|
"phpunit/phpunit": "^8.5",
|
||||||
"bfunky/http-parser": "^2.2",
|
"bfunky/http-parser": "^2.2",
|
||||||
"cboden/ratchet": "^0.4.2",
|
"cboden/ratchet": "^0.4.2",
|
||||||
"clue/buzz-react": "^2.7",
|
"clue/buzz-react": "^2.7",
|
||||||
@@ -36,10 +40,6 @@
|
|||||||
"symfony/http-kernel": "^4.0|^5.0",
|
"symfony/http-kernel": "^4.0|^5.0",
|
||||||
"symfony/psr-http-message-bridge": "^2.0"
|
"symfony/psr-http-message-bridge": "^2.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
|
||||||
"mockery/mockery": "^1.3.1",
|
|
||||||
"phpunit/phpunit": "^8.5"
|
|
||||||
},
|
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"App\\": "app/"
|
"App\\": "app/"
|
||||||
@@ -62,5 +62,5 @@
|
|||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"prefer-stable": true,
|
"prefer-stable": true,
|
||||||
"bin": ["expose"]
|
"bin": ["builds/expose"]
|
||||||
}
|
}
|
||||||
|
|||||||
6816
composer.lock
generated
6816
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user