Remove altervista when done
This commit is contained in:
parent
37d3f94af2
commit
26bb35e921
@ -96,10 +96,10 @@ class PhpDocBuilder
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!$this->namespace) {
|
if (!$this->namespace) {
|
||||||
$namespaces = array_keys($json['autoload']['psr-4']);
|
$namespaces = \array_keys($json['autoload']['psr-4']);
|
||||||
$this->namespace = $namespaces[0];
|
$this->namespace = $namespaces[0];
|
||||||
foreach ($namespaces as $namespace) {
|
foreach ($namespaces as $namespace) {
|
||||||
if (strlen($namespace) && strlen($namespace) < strlen($this->namespace)) {
|
if (\strlen($namespace) && \strlen($namespace) < \strlen($this->namespace)) {
|
||||||
$this->namespace = $namespace;
|
$this->namespace = $namespace;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -225,6 +225,8 @@ class Connection extends SettingsAbstract
|
|||||||
|
|
||||||
if (Magic::$altervista) {
|
if (Magic::$altervista) {
|
||||||
$this->addProxy(HttpProxy::class, ['address' => 'localhost', 'port' => 80]);
|
$this->addProxy(HttpProxy::class, ['address' => 'localhost', 'port' => 80]);
|
||||||
|
} else {
|
||||||
|
$this->removeProxy(HttpProxy::class, , ['address' => 'localhost', 'port' => 80]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Amp\Sync\Internal\MutexStorage;
|
|
||||||
use danog\MadelineProto\AbstractAPIFactory;
|
use danog\MadelineProto\AbstractAPIFactory;
|
||||||
use danog\MadelineProto\AnnotationsBuilder;
|
use danog\MadelineProto\AnnotationsBuilder;
|
||||||
use danog\MadelineProto\APIFactory;
|
use danog\MadelineProto\APIFactory;
|
||||||
|
Loading…
Reference in New Issue
Block a user