mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Dotenv upgrade to v4
This commit is contained in:
parent
8acd0b0ba5
commit
e1cfba72ce
@ -9,5 +9,5 @@ chdir($root);
|
|||||||
|
|
||||||
//Check if root env file hash been loaded (in case plugin installed in existing project)
|
//Check if root env file hash been loaded (in case plugin installed in existing project)
|
||||||
if (!getenv('SERVER_ADDRESS')) {
|
if (!getenv('SERVER_ADDRESS')) {
|
||||||
Dotenv\Dotenv::create($root, '.env')->load();
|
Dotenv\Dotenv::createImmutable($root)->load();
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,11 @@
|
|||||||
"php": ">=7.3.0",
|
"php": ">=7.3.0",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"amphp/http-server": "^2",
|
"amphp/http-server": "^2",
|
||||||
"vlucas/phpdotenv": "^3",
|
"vlucas/phpdotenv": "^4",
|
||||||
"danog/madelineproto":"^5"
|
"danog/madelineproto":"^5"
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
|
"prefer-stable": true,
|
||||||
"authors": [
|
"authors": [
|
||||||
{
|
{
|
||||||
"name": "Alexander Pankratov",
|
"name": "Alexander Pankratov",
|
||||||
|
94
composer.lock
generated
94
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "e6402b29093e8463dff6bf8559aafc84",
|
"content-hash": "75ba1bc8d195a8a0bee6e46757f5aa25",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "amphp/amp",
|
"name": "amphp/amp",
|
||||||
@ -902,33 +902,34 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "amphp/sync",
|
"name": "amphp/sync",
|
||||||
"version": "v1.x-dev",
|
"version": "v1.3.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/amphp/sync.git",
|
"url": "https://github.com/amphp/sync.git",
|
||||||
"reference": "eafe96a8f25fc01e08666dbddeb2e60d60488f7f"
|
"reference": "512d62e83c8b8d5c848183005c70e70df2bcca55"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/amphp/sync/zipball/eafe96a8f25fc01e08666dbddeb2e60d60488f7f",
|
"url": "https://api.github.com/repos/amphp/sync/zipball/512d62e83c8b8d5c848183005c70e70df2bcca55",
|
||||||
"reference": "eafe96a8f25fc01e08666dbddeb2e60d60488f7f",
|
"reference": "512d62e83c8b8d5c848183005c70e70df2bcca55",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"amphp/amp": "^2"
|
"amphp/amp": "^2.2",
|
||||||
|
"php": ">=7.1"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"amphp/phpunit-util": "^1",
|
"amphp/php-cs-fixer-config": "dev-master",
|
||||||
"friendsofphp/php-cs-fixer": "^2.3",
|
"amphp/phpunit-util": "^1.1",
|
||||||
"phpunit/phpunit": "^6"
|
"phpunit/phpunit": "^8 || ^7"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
"Amp\\Sync\\": "lib"
|
"Amp\\Sync\\": "src"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"lib/functions.php"
|
"src/functions.php"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
@ -954,7 +955,7 @@
|
|||||||
"semaphore",
|
"semaphore",
|
||||||
"synchronization"
|
"synchronization"
|
||||||
],
|
],
|
||||||
"time": "2019-09-20T03:24:36+00:00"
|
"time": "2019-11-08T18:42:56+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "amphp/uri",
|
"name": "amphp/uri",
|
||||||
@ -1627,7 +1628,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "daverandom/libdns",
|
"name": "daverandom/libdns",
|
||||||
"version": "2.x-dev",
|
"version": "v2.0.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/DaveRandom/LibDNS.git",
|
"url": "https://github.com/DaveRandom/LibDNS.git",
|
||||||
@ -1667,16 +1668,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "erusev/parsedown",
|
"name": "erusev/parsedown",
|
||||||
"version": "1.8.0-beta-7",
|
"version": "1.7.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/erusev/parsedown.git",
|
"url": "https://github.com/erusev/parsedown.git",
|
||||||
"reference": "fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955"
|
"reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/erusev/parsedown/zipball/fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955",
|
"url": "https://api.github.com/repos/erusev/parsedown/zipball/cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
|
||||||
"reference": "fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955",
|
"reference": "cb17b6477dfff935958ba01325f2e8a2bfa6dab3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1709,7 +1710,7 @@
|
|||||||
"markdown",
|
"markdown",
|
||||||
"parser"
|
"parser"
|
||||||
],
|
],
|
||||||
"time": "2019-03-17T18:47:21+00:00"
|
"time": "2019-12-30T22:54:17+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "kelunik/certificate",
|
"name": "kelunik/certificate",
|
||||||
@ -1843,7 +1844,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/uri-interfaces",
|
"name": "league/uri-interfaces",
|
||||||
"version": "dev-master",
|
"version": "2.0.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/uri-interfaces.git",
|
"url": "https://github.com/thephpleague/uri-interfaces.git",
|
||||||
@ -1900,16 +1901,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "league/uri-parser",
|
"name": "league/uri-parser",
|
||||||
"version": "1.x-dev",
|
"version": "1.4.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/thephpleague/uri-parser.git",
|
"url": "https://github.com/thephpleague/uri-parser.git",
|
||||||
"reference": "917b60f69f7e2960b5026d3920e8066545139dcb"
|
"reference": "671548427e4c932352d9b9279fdfa345bf63fa00"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/thephpleague/uri-parser/zipball/917b60f69f7e2960b5026d3920e8066545139dcb",
|
"url": "https://api.github.com/repos/thephpleague/uri-parser/zipball/671548427e4c932352d9b9279fdfa345bf63fa00",
|
||||||
"reference": "917b60f69f7e2960b5026d3920e8066545139dcb",
|
"reference": "671548427e4c932352d9b9279fdfa345bf63fa00",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1961,11 +1962,11 @@
|
|||||||
"uri",
|
"uri",
|
||||||
"url"
|
"url"
|
||||||
],
|
],
|
||||||
"time": "2019-09-20T22:27:10+00:00"
|
"time": "2018-11-22T07:55:51+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "paragonie/constant_time_encoding",
|
"name": "paragonie/constant_time_encoding",
|
||||||
"version": "v1.x-dev",
|
"version": "v1.0.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/paragonie/constant_time_encoding.git",
|
"url": "https://github.com/paragonie/constant_time_encoding.git",
|
||||||
@ -2077,7 +2078,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpoption/phpoption",
|
"name": "phpoption/phpoption",
|
||||||
"version": "dev-master",
|
"version": "1.7.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/schmittjoh/php-option.git",
|
"url": "https://github.com/schmittjoh/php-option.git",
|
||||||
@ -2132,16 +2133,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/http-message",
|
"name": "psr/http-message",
|
||||||
"version": "dev-master",
|
"version": "1.0.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/php-fig/http-message.git",
|
"url": "https://github.com/php-fig/http-message.git",
|
||||||
"reference": "efd67d1dc14a7ef4fc4e518e7dee91c271d524e4"
|
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/php-fig/http-message/zipball/efd67d1dc14a7ef4fc4e518e7dee91c271d524e4",
|
"url": "https://api.github.com/repos/php-fig/http-message/zipball/f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||||
"reference": "efd67d1dc14a7ef4fc4e518e7dee91c271d524e4",
|
"reference": "f6561bf28d520154e4b0ec72be95418abe6d9363",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -2178,20 +2179,20 @@
|
|||||||
"request",
|
"request",
|
||||||
"response"
|
"response"
|
||||||
],
|
],
|
||||||
"time": "2019-08-29T13:16:46+00:00"
|
"time": "2016-08-06T14:39:51+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/log",
|
"name": "psr/log",
|
||||||
"version": "dev-master",
|
"version": "1.1.2",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/php-fig/log.git",
|
"url": "https://github.com/php-fig/log.git",
|
||||||
"reference": "5628725d0e4d687e29575eb41f9d5ee7de33a84c"
|
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/php-fig/log/zipball/5628725d0e4d687e29575eb41f9d5ee7de33a84c",
|
"url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801",
|
||||||
"reference": "5628725d0e4d687e29575eb41f9d5ee7de33a84c",
|
"reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -2225,11 +2226,11 @@
|
|||||||
"psr",
|
"psr",
|
||||||
"psr-3"
|
"psr-3"
|
||||||
],
|
],
|
||||||
"time": "2019-11-12T16:45:05+00:00"
|
"time": "2019-11-01T11:05:21+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-ctype",
|
"name": "symfony/polyfill-ctype",
|
||||||
"version": "dev-master",
|
"version": "v1.13.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/polyfill-ctype.git",
|
"url": "https://github.com/symfony/polyfill-ctype.git",
|
||||||
@ -2287,30 +2288,31 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vlucas/phpdotenv",
|
"name": "vlucas/phpdotenv",
|
||||||
"version": "3.6.x-dev",
|
"version": "v4.1.0",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/vlucas/phpdotenv.git",
|
"url": "https://github.com/vlucas/phpdotenv.git",
|
||||||
"reference": "1bdf24f065975594f6a117f0f1f6cabf1333b156"
|
"reference": "0176075a1b7ee9cf86f70143ec79edf7072c975a"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/1bdf24f065975594f6a117f0f1f6cabf1333b156",
|
"url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/0176075a1b7ee9cf86f70143ec79edf7072c975a",
|
||||||
"reference": "1bdf24f065975594f6a117f0f1f6cabf1333b156",
|
"reference": "0176075a1b7ee9cf86f70143ec79edf7072c975a",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^5.4 || ^7.0",
|
"php": "^5.5.9 || ^7.0",
|
||||||
"phpoption/phpoption": "^1.5",
|
"phpoption/phpoption": "^1.7.1",
|
||||||
"symfony/polyfill-ctype": "^1.9"
|
"symfony/polyfill-ctype": "^1.9"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
|
"bamarni/composer-bin-plugin": "^1.3",
|
||||||
"phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
|
"phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
|
||||||
},
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
"extra": {
|
"extra": {
|
||||||
"branch-alias": {
|
"branch-alias": {
|
||||||
"dev-master": "3.6-dev"
|
"dev-master": "4.1-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
@ -2340,14 +2342,14 @@
|
|||||||
"env",
|
"env",
|
||||||
"environment"
|
"environment"
|
||||||
],
|
],
|
||||||
"time": "2019-09-10T21:37:39+00:00"
|
"time": "2019-12-14T13:59:29+00:00"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"packages-dev": [],
|
"packages-dev": [],
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"stability-flags": [],
|
"stability-flags": [],
|
||||||
"prefer-stable": false,
|
"prefer-stable": true,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
"platform": {
|
"platform": {
|
||||||
"php": ">=7.3.0",
|
"php": ">=7.3.0",
|
||||||
|
Loading…
Reference in New Issue
Block a user