mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 13:35:54 +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
|
||||
/.vscode
|
||||
/.vagrant
|
||||
/composer.lock
|
||||
.phpunit.result.cache
|
||||
|
||||
@@ -17,6 +17,16 @@ class AppServiceProvider extends ServiceProvider
|
||||
|
||||
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 () {
|
||||
return LoopFactory::create();
|
||||
});
|
||||
|
||||
1
box.json
1
box.json
@@ -6,6 +6,7 @@
|
||||
"config",
|
||||
"vendor"
|
||||
],
|
||||
"exclude-dev-files": false,
|
||||
"files": [
|
||||
"composer.json"
|
||||
],
|
||||
|
||||
@@ -17,7 +17,11 @@
|
||||
],
|
||||
"require": {
|
||||
"php": "^7.2.5",
|
||||
"ext-json": "*",
|
||||
"ext-json": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^1.3.1",
|
||||
"phpunit/phpunit": "^8.5",
|
||||
"bfunky/http-parser": "^2.2",
|
||||
"cboden/ratchet": "^0.4.2",
|
||||
"clue/buzz-react": "^2.7",
|
||||
@@ -36,10 +40,6 @@
|
||||
"symfony/http-kernel": "^4.0|^5.0",
|
||||
"symfony/psr-http-message-bridge": "^2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^1.3.1",
|
||||
"phpunit/phpunit": "^8.5"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "app/"
|
||||
@@ -62,5 +62,5 @@
|
||||
},
|
||||
"minimum-stability": "dev",
|
||||
"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