From c0c7f36baddc9e6d37812ef6583a36b1baf9815f Mon Sep 17 00:00:00 2001 From: Shabanov Vyacheslav Date: Wed, 21 Feb 2024 09:45:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=97=20=E2=84=9616:=20=D0=9F=D0=B0?= =?UTF-8?q?=D1=82=D1=82=D0=B5=D1=80=D0=BD=D1=8B=20=D0=BF=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hw16/.docker/php-fpm/Dockerfile | 15 ++ hw16/.docker/php-fpm/xdebug.ini | 8 + hw16/docker-compose.yml | 7 + hw16/www/composer.json | 15 ++ hw16/www/public/index.php | 12 ++ hw16/www/src/Adapter/PizzaAdapter.php | 33 ++++ hw16/www/src/App.php | 61 +++++++ hw16/www/src/Builder/ProductBuilder.php | 36 ++++ .../www/src/Decorator/AbstractIngradients.php | 15 ++ .../www/src/Decorator/MultipleIngradients.php | 21 +++ hw16/www/src/Decorator/OnionIngradient.php | 12 ++ hw16/www/src/Decorator/PepperIngradient.php | 11 ++ hw16/www/src/Decorator/SaladIngradient.php | 12 ++ hw16/www/src/Entity/Burger.php | 14 ++ hw16/www/src/Entity/Client.php | 16 ++ hw16/www/src/Entity/HotDog.php | 14 ++ hw16/www/src/Entity/Pizza.php | 13 ++ hw16/www/src/Entity/Sandwich.php | 14 ++ .../www/src/Fabrics/AbstractProductFabric.php | 10 ++ hw16/www/src/Fabrics/BurgerFabric.php | 15 ++ hw16/www/src/Fabrics/HotDogFabric.php | 15 ++ hw16/www/src/Fabrics/SandwichFabric.php | 15 ++ hw16/www/src/Interfaces/ObserverInterface.php | 8 + hw16/www/src/Interfaces/ProductInterface.php | 7 + hw16/www/src/Observer/Event.php | 33 ++++ hw16/www/src/Services/Cooking.php | 49 ++++++ hw16/www/xdebug.log | 161 ++++++++++++++++++ 27 files changed, 642 insertions(+) create mode 100644 hw16/.docker/php-fpm/Dockerfile create mode 100755 hw16/.docker/php-fpm/xdebug.ini create mode 100644 hw16/docker-compose.yml create mode 100644 hw16/www/composer.json create mode 100644 hw16/www/public/index.php create mode 100644 hw16/www/src/Adapter/PizzaAdapter.php create mode 100644 hw16/www/src/App.php create mode 100644 hw16/www/src/Builder/ProductBuilder.php create mode 100644 hw16/www/src/Decorator/AbstractIngradients.php create mode 100644 hw16/www/src/Decorator/MultipleIngradients.php create mode 100644 hw16/www/src/Decorator/OnionIngradient.php create mode 100644 hw16/www/src/Decorator/PepperIngradient.php create mode 100644 hw16/www/src/Decorator/SaladIngradient.php create mode 100644 hw16/www/src/Entity/Burger.php create mode 100644 hw16/www/src/Entity/Client.php create mode 100644 hw16/www/src/Entity/HotDog.php create mode 100644 hw16/www/src/Entity/Pizza.php create mode 100644 hw16/www/src/Entity/Sandwich.php create mode 100644 hw16/www/src/Fabrics/AbstractProductFabric.php create mode 100644 hw16/www/src/Fabrics/BurgerFabric.php create mode 100644 hw16/www/src/Fabrics/HotDogFabric.php create mode 100644 hw16/www/src/Fabrics/SandwichFabric.php create mode 100644 hw16/www/src/Interfaces/ObserverInterface.php create mode 100644 hw16/www/src/Interfaces/ProductInterface.php create mode 100644 hw16/www/src/Observer/Event.php create mode 100644 hw16/www/src/Services/Cooking.php create mode 100644 hw16/www/xdebug.log diff --git a/hw16/.docker/php-fpm/Dockerfile b/hw16/.docker/php-fpm/Dockerfile new file mode 100644 index 000000000..fc46a5c7a --- /dev/null +++ b/hw16/.docker/php-fpm/Dockerfile @@ -0,0 +1,15 @@ +FROM php:8.2-fpm + +RUN mkdir -p /var/www/otusphp.local + +WORKDIR /var/www/otusphp.local + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +RUN pecl install xdebug-3.3.0 \ + && docker-php-ext-enable xdebug + +RUN chown -R www-data:www-data /var/www/otusphp.local +COPY ./xdebug.ini /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini + +CMD ["php-fpm"] diff --git a/hw16/.docker/php-fpm/xdebug.ini b/hw16/.docker/php-fpm/xdebug.ini new file mode 100755 index 000000000..96919afef --- /dev/null +++ b/hw16/.docker/php-fpm/xdebug.ini @@ -0,0 +1,8 @@ +[xdebug] +zend_extension=xdebug.so +xdebug.mode=debug +xdebug.client_host=host.docker.internal +xdebug.client_port=54321 +xdebug.log=/var/www/otusphp.local/xdebug.log +xdebug.start_with_request=yes +xdebug.idekey=PHPSTORM diff --git a/hw16/docker-compose.yml b/hw16/docker-compose.yml new file mode 100644 index 000000000..ff4c50cfd --- /dev/null +++ b/hw16/docker-compose.yml @@ -0,0 +1,7 @@ +version: "3" +services: + php-fpm: + container_name: php-fpm + build: ./.docker/php-fpm + volumes: + - ./www:/var/www/otusphp.local diff --git a/hw16/www/composer.json b/hw16/www/composer.json new file mode 100644 index 000000000..935545090 --- /dev/null +++ b/hw16/www/composer.json @@ -0,0 +1,15 @@ +{ + "name": "shabanov/otusphp", + "autoload": { + "psr-4": { + "Shabanov\\Otusphp\\": "src/" + } + }, + "authors": [ + { + "name": "Shabanov Vyacheslav", + "email": "saveliy@mail.ru" + } + ], + "require": {} +} diff --git a/hw16/www/public/index.php b/hw16/www/public/index.php new file mode 100644 index 000000000..0100d8961 --- /dev/null +++ b/hw16/www/public/index.php @@ -0,0 +1,12 @@ +run(); +} catch (\Exception $e) { + throw new \Exception($e->getMessage()); +} diff --git a/hw16/www/src/Adapter/PizzaAdapter.php b/hw16/www/src/Adapter/PizzaAdapter.php new file mode 100644 index 000000000..d6f14b7a8 --- /dev/null +++ b/hw16/www/src/Adapter/PizzaAdapter.php @@ -0,0 +1,33 @@ +createPizza(); + $this->cooking = new Cooking($this->pizza, $this->event); + } + + private function createPizza(): void + { + $this->pizza = (new ProductBuilder(new Pizza())) + ->addSalad() + ->addOnion() + ->build(); + } + + public function cook(): void + { + $this->cooking->run(); + } +} diff --git a/hw16/www/src/App.php b/hw16/www/src/App.php new file mode 100644 index 000000000..877d667bb --- /dev/null +++ b/hw16/www/src/App.php @@ -0,0 +1,61 @@ +createClients(); + /** + * Создадим продукт + */ + $product = $this->createProduct(); + $product = (new ProductBuilder($product)) + ->addOnion() + ->addPepper() + ->addSalad() + ->build(); + /** + * Приготовим продукт + */ + $cooking = new Cooking($product, $this->event); + $cooking->run(); + /** + * Пиццу приготовим через адаптер + */ + $pizzaAdapter = new PizzaAdapter($this->event); + $pizzaAdapter->cook(); + } + + private function createProduct(): ProductInterface + { + return self::PRODUCT::createProduct(); + } + + private function createClients(): void + { + $client1 = new Client('Вячеслав'); + $client2 = new Client('Сергей'); + $this->event = new Event(); + $this->event->addSubscriber($client1) + ->addSubscriber($client2); + } +} diff --git a/hw16/www/src/Builder/ProductBuilder.php b/hw16/www/src/Builder/ProductBuilder.php new file mode 100644 index 000000000..66bdcd40a --- /dev/null +++ b/hw16/www/src/Builder/ProductBuilder.php @@ -0,0 +1,36 @@ +product = new OnionIngradient($this->product); + return $this; + } + + public function addPepper(): self + { + $this->product = new PepperIngradient($this->product); + return $this; + } + + public function addSalad(): self + { + $this->product = new SaladIngradient($this->product); + return $this; + } + + public function build(): ProductInterface + { + return $this->product; + } +} diff --git a/hw16/www/src/Decorator/AbstractIngradients.php b/hw16/www/src/Decorator/AbstractIngradients.php new file mode 100644 index 000000000..dec31d72a --- /dev/null +++ b/hw16/www/src/Decorator/AbstractIngradients.php @@ -0,0 +1,15 @@ +product->getInfo(); + } +} diff --git a/hw16/www/src/Decorator/MultipleIngradients.php b/hw16/www/src/Decorator/MultipleIngradients.php new file mode 100644 index 000000000..41f65d635 --- /dev/null +++ b/hw16/www/src/Decorator/MultipleIngradients.php @@ -0,0 +1,21 @@ +ingradients as $ingradient) { + $this->product = new $ingradient($this->product); + } + } + + public function getInfo(): string + { + return $this->product->getInfo(); + } +} diff --git a/hw16/www/src/Decorator/OnionIngradient.php b/hw16/www/src/Decorator/OnionIngradient.php new file mode 100644 index 000000000..55692cf7f --- /dev/null +++ b/hw16/www/src/Decorator/OnionIngradient.php @@ -0,0 +1,12 @@ +name . ': Статус приготовления ' . $product->getInfo() . ' -- ' . $status . PHP_EOL; + } +} diff --git a/hw16/www/src/Entity/HotDog.php b/hw16/www/src/Entity/HotDog.php new file mode 100644 index 000000000..0fec5e44c --- /dev/null +++ b/hw16/www/src/Entity/HotDog.php @@ -0,0 +1,14 @@ +subscribers[] = $subscriber; + return $this; + } + + public function removeSubscriber(ObserverInterface $subscriber): void + { + $index = array_search($subscriber, $this->subscribers); + if ($index !== false) { + unset($this->subscribers[$index]); + } + } + + public function notifySubscribers(ProductInterface $product, string $status): void + { + foreach($this->subscribers as $subscriber) { + $subscriber->update($product, $status); + } + } +} diff --git a/hw16/www/src/Services/Cooking.php b/hw16/www/src/Services/Cooking.php new file mode 100644 index 000000000..1c3919140 --- /dev/null +++ b/hw16/www/src/Services/Cooking.php @@ -0,0 +1,49 @@ +setStatus(self::STATUS_START); + //$this->addIngradients(); + } + + public function run() + { + sleep(1); + $this->setStatus(self::STATUS_PROCESS); + sleep(2); + $this->setStatus(self::STATUS_FINISH); + } + + /* + * TODO Переделал на Builder + * private function addIngradients() + { + $this->product = (new MultipleIngradients($this->product, $this->ingradients)); + }*/ + + public function getStatus(): string + { + return $this->product->getInfo() . ' ' . $this->status; + } + + public function setStatus(string $status): self + { + $this->status = $status; + $this->event->notifySubscribers($this->product, $this->status); + return $this; + } + +} diff --git a/hw16/www/xdebug.log b/hw16/www/xdebug.log new file mode 100644 index 000000000..e368fe5dc --- /dev/null +++ b/hw16/www/xdebug.log @@ -0,0 +1,161 @@ +[17] Log opened at 2024-02-19 07:30:44.651372 +[17] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.17' +[17] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[17] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[17] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[17] Log closed at 2024-02-19 07:30:46.764822 + +[18] Log opened at 2024-02-19 07:32:09.571566 +[18] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.18' +[18] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[18] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[18] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[18] Log closed at 2024-02-19 07:32:11.671095 + +[19] Log opened at 2024-02-19 07:32:29.995628 +[19] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.19' +[19] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[19] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[19] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[19] Log closed at 2024-02-19 07:32:32.103414 + +[20] Log opened at 2024-02-19 07:37:39.580931 +[20] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.20' +[20] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[20] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[20] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[20] Log closed at 2024-02-19 07:37:41.680746 + +[21] Log opened at 2024-02-19 07:37:50.873741 +[21] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.21' +[21] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[21] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[21] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[21] Log closed at 2024-02-19 07:37:52.963638 + +[22] Log opened at 2024-02-19 07:38:16.927112 +[22] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.22' +[22] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[22] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[22] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[22] Log closed at 2024-02-19 07:38:19.025523 + +[23] Log opened at 2024-02-19 07:38:55.583099 +[23] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.23' +[23] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[23] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[23] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[23] Log closed at 2024-02-19 07:38:57.683668 + +[16] Log opened at 2024-02-20 06:26:42.487815 +[16] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.16' +[16] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[16] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[16] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[16] Log closed at 2024-02-20 06:26:44.587445 + +[17] Log opened at 2024-02-20 07:23:04.929945 +[17] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.17' +[17] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[17] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[17] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[17] Log closed at 2024-02-20 07:23:07.018771 + +[18] Log opened at 2024-02-20 07:23:55.062100 +[18] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.18' +[18] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[18] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[18] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[18] Log closed at 2024-02-20 07:23:58.203246 + +[19] Log opened at 2024-02-20 07:24:26.389464 +[19] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.19' +[19] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[19] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[19] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[19] Log closed at 2024-02-20 07:24:29.474764 + +[20] Log opened at 2024-02-20 07:25:18.022246 +[20] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.20' +[20] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[20] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[20] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[20] Log closed at 2024-02-20 07:25:21.119580 + +[15] Log opened at 2024-02-23 07:41:56.750767 +[15] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.15' +[15] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[15] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[15] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[15] Log closed at 2024-02-23 07:41:59.822587 + +[16] Log opened at 2024-02-23 08:09:02.832453 +[16] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.16' +[16] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[16] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[16] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[16] Log closed at 2024-02-23 08:09:08.943150 + +[17] Log opened at 2024-02-23 08:10:15.812901 +[17] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.17' +[17] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[17] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[17] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[17] Log closed at 2024-02-23 08:10:21.909512 + +[18] Log opened at 2024-02-23 08:29:36.478513 +[18] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.18' +[18] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[18] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[18] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[18] Log closed at 2024-02-23 08:29:39.583959 + +[19] Log opened at 2024-02-23 08:29:55.688623 +[19] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.19' +[19] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[19] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[19] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[19] Log closed at 2024-02-23 08:30:01.782311 + +[20] Log opened at 2024-02-23 08:37:15.071194 +[20] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.20' +[20] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[20] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[20] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[20] Log closed at 2024-02-23 08:37:18.173726 + +[21] Log opened at 2024-02-23 08:38:40.118467 +[21] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.21' +[21] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[21] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[21] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[21] Log closed at 2024-02-23 08:38:43.210768 + +[22] Log opened at 2024-02-23 08:39:19.419100 +[22] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.22' +[22] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[22] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[22] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[22] Log closed at 2024-02-23 08:39:25.518024 + +[23] Log opened at 2024-02-23 08:40:10.051211 +[23] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.23' +[23] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[23] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[23] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[23] Log closed at 2024-02-23 08:40:13.150766 + +[24] Log opened at 2024-02-23 08:40:39.290586 +[24] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.24' +[24] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[24] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[24] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[24] Log closed at 2024-02-23 08:40:45.391559 + +[25] Log opened at 2024-02-23 08:43:10.040751 +[25] [Config] INFO: Control socket set up succesfully: '@xdebug-ctrl.25' +[25] [Step Debug] INFO: Connecting to configured address/port: host.docker.internal:54321. +[25] [Step Debug] WARN: Creating socket for 'host.docker.internal:54321', getaddrinfo: Success. +[25] [Step Debug] ERR: Could not connect to debugging client. Tried: host.docker.internal:54321 (through xdebug.client_host/xdebug.client_port). +[25] Log closed at 2024-02-23 08:43:16.132149 +