Merge pull request #1 from beyondcode/feat/adds-build-with-config

Adds build binary with support of user configuration
This commit is contained in:
Marcel Pociot
2020-04-24 12:37:10 +02:00
committed by GitHub
5 changed files with 18 additions and 6822 deletions

1
.gitignore vendored
View File

@@ -2,4 +2,5 @@
/.idea
/.vscode
/.vagrant
/composer.lock
.phpunit.result.cache

View File

@@ -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();
});

View File

@@ -6,6 +6,7 @@
"config",
"vendor"
],
"exclude-dev-files": false,
"files": [
"composer.json"
],

View File

@@ -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

File diff suppressed because it is too large Load Diff