Finally stabilize dependencies
This commit is contained in:
parent
6a6066b8ad
commit
832df205c4
@ -26,7 +26,7 @@
|
||||
"amphp/artax": "^3.0",
|
||||
"amphp/file": "^0.3.5",
|
||||
"amphp/uri": "^0.1.4",
|
||||
"amphp/byte-stream": "dev-master#bc191a8 as 1.5"
|
||||
"amphp/byte-stream": "1.6.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpdocumentor/reflection-docblock": "^3.1",
|
||||
|
@ -156,12 +156,17 @@ class Logger
|
||||
$param = str_pad($file.$prefix.': ', 16 + strlen($prefix))."\t".$param;
|
||||
switch ($this->mode) {
|
||||
case 1:
|
||||
$this->stdout->write($param.$this->newline);
|
||||
if ($this->stdout->write($param.$this->newline) instanceof Failure) {
|
||||
error_log($param);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$param = Magic::$isatty ? "\33[".$this->colors[$level].'m'.$param."\33[0m".$this->newline : $param.$this->newline;
|
||||
if ($this->stdout->write($param) instanceof Failure) {
|
||||
echo "(closed) $param";
|
||||
switch ($this->mode) {
|
||||
case 3: echo "(closed) $param"; break;
|
||||
case 2: file_put_contents($this->optional, "(closed) $param", FILE_APPEND); break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
namespace danog\MadelineProto\Wrappers;
|
||||
|
||||
use function Amp\ByteStream\getOutput;
|
||||
use function Amp\ByteStream\getOutputBufferStream;
|
||||
|
||||
trait ApiTemplates
|
||||
{
|
||||
@ -55,7 +55,7 @@ trait ApiTemplates
|
||||
|
||||
public function web_api_echo_async($message = '')
|
||||
{
|
||||
$stdout = getOutput();
|
||||
$stdout = getOutputBufferStream();
|
||||
if (!isset($this->my_telegram_org_wrapper)) {
|
||||
if (isset($_POST['type'])) {
|
||||
if ($_POST['type'] === 'manual') {
|
||||
|
@ -19,13 +19,13 @@
|
||||
|
||||
namespace danog\MadelineProto\Wrappers;
|
||||
|
||||
use function Amp\ByteStream\getOutput;
|
||||
use function Amp\ByteStream\getOutputBufferStream;
|
||||
|
||||
trait Templates
|
||||
{
|
||||
public function web_echo_async($message = '')
|
||||
{
|
||||
$stdout = getOutput();
|
||||
$stdout = getOutputBufferStream();
|
||||
switch ($this->authorized) {
|
||||
case self::NOT_LOGGED_IN:
|
||||
if (isset($_POST['type'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user