diff --git a/.env b/.env index c1b2e88..5f9566c 100644 --- a/.env +++ b/.env @@ -47,3 +47,8 @@ APP_VERSION=1.0.0 # Application name APP_NAME=HLState + +# Game server +APP_SERVER_HOST=localhost +APP_SERVER_PORT=27015 +APP_SERVER_TIMEOUT=3 diff --git a/.gitignore b/.gitignore index 30074ac..13f3324 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ - ###> symfony/framework-bundle ### /.env.local /.env.local.php diff --git a/assets/app.js b/assets/app.js index 0606034..e3b03ad 100644 --- a/assets/app.js +++ b/assets/app.js @@ -1,4 +1,3 @@ -import './bootstrap.js'; /* * Welcome to your app's main JavaScript file! * diff --git a/composer.json b/composer.json index 9bc9f5c..be629fe 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,8 @@ "symfony/web-link": "7.0.*", "symfony/yaml": "7.0.*", "twig/extra-bundle": "^2.12|^3.0", - "twig/twig": "^2.12|^3.0" + "twig/twig": "^2.12|^3.0", + "xpaw/php-source-query-class": "^2.1" }, "config": { "allow-plugins": { diff --git a/composer.lock b/composer.lock index d999890..ede2a2a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "838f369c8c8229d7a82908010142d978", + "content-hash": "66ab47b04c6a49df812afba2a57a75bc", "packages": [ { "name": "composer/semver", @@ -7546,6 +7546,61 @@ "source": "https://github.com/webmozarts/assert/tree/1.11.0" }, "time": "2022-06-03T18:03:27+00:00" + }, + { + "name": "xpaw/php-source-query-class", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/xPaw/PHP-Source-Query.git", + "reference": "673e572233c3ab4b70b302d648ebaf5a8d9ba32b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/xPaw/PHP-Source-Query/zipball/673e572233c3ab4b70b302d648ebaf5a8d9ba32b", + "reference": "673e572233c3ab4b70b302d648ebaf5a8d9ba32b", + "shasum": "" + }, + "require": { + "php": ">=7.4" + }, + "require-dev": { + "phpunit/phpunit": "9.2", + "vimeo/psalm": "^3.12" + }, + "type": "library", + "autoload": { + "psr-4": { + "xPaw\\SourceQuery\\": "SourceQuery/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "LGPL-2.1" + ], + "description": "PHP library to query and send RCON commands to servers based on \"Source Engine Query\" protocol", + "homepage": "https://github.com/xPaw/PHP-Source-Query", + "keywords": [ + "ark", + "counter-strike", + "csgo", + "gmod", + "minecraft", + "rcon", + "rust", + "starbound", + "team fortress" + ], + "support": { + "source": "https://github.com/xPaw/PHP-Source-Query/tree/2.1.0" + }, + "funding": [ + { + "url": "https://github.com/xPaw", + "type": "github" + } + ], + "time": "2020-12-04T08:20:42+00:00" } ], "packages-dev": [ diff --git a/config/services.yaml b/config/services.yaml index afb739c..e514896 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -6,6 +6,9 @@ parameters: app.version: '%env(APP_VERSION)%' app.name: '%env(APP_NAME)%' + app.server.host: '%env(APP_SERVER_HOST)%' + app.server.port: '%env(APP_SERVER_PORT)%' + app.server.timeout: '%env(APP_SERVER_TIMEOUT)%' services: # default configuration for services in *this* file