Избавление от phpdotenv, переработка сборщика

This commit is contained in:
RedHood
2020-09-17 22:27:12 +10:00
parent 7c0fcc392d
commit 48946d9070
14 changed files with 253 additions and 253 deletions

View File

@@ -19,27 +19,6 @@ use VK\API\LongPoll;
*/
class Group extends RobotAbstract
{
/**
* ВКонтакте: идентификатор
*
* @var string
*/
public int $id;
/**
* ВКонтакте: токен доступа
*
* @var string
*/
public string $token;
/**
* ВКонтакте: версия API
*
* @var float
*/
public float $version;
/**
* ВКонтакте: тип API
*
@@ -61,13 +40,6 @@ class Group extends RobotAbstract
*/
//protected int $captcha;
public function __construct($name)
{
if (!isset($this->id)) $this->id = (int) $_ENV['DEFAULT_' . strtoupper($name) . '_ID'];
if (!isset($this->token)) $this->token = (string) $_ENV['DEFAULT_' . strtoupper($name) . '_TOKEN'];
if (!isset($this->version)) $this->version = (float) $_ENV['DEFAULT_API_VERSION'];
}
public function postMethod($method, $params = []): BrowserAbstract
{
$browser = __NAMESPACE__ . '\\Browsers\\' . ucfirst($_ENV['BROWSER_TYPE']);