Tag : symfony

I am trying to install the Opensoft/json-streaming parser from their github repository. I am doing all of this through a Dockerfile. For some reason, the opensoft package is not being added to the "vendor" directory after this runs. Dockerfile: FROM composer:2 AS dependencies COPY composer.json composer.json COPY composer.lock composer.lock RUN mkdir app COPY ./app/AppKernel.php ./app ..

Read more

I created a symfony environment with docker. I then included this file in my web project (skeleton website). But when I try to access my base.html.twig page located in a main folder from the controller, I get this error: Unable to find template "main/base.html.twig" (looked into: /var/www/templates, /var/www/vendor/symfony/twig-bridge/Resources/views/Form). Do you know how to solve the ..

Read more

I have this code : docker-compose.yml environment: REDIS_SERVER: redis REDIS_PORT: 6379 In parameters.yml : redis_port: %env(REDIS_PORT)% And in config : cache: pools: redis: enabled: true connection: port: ‘%redis_port%’ I have the error Invalid type for path "pimcore.cache.pools.redis.connection.port". Expected int, but got string. The error is clear but I can’t solve it, I tried different options ..

Read more

I’m using Mercure Hub in a Docker container on my windows machine. I’ve got a Symfony application and I want to use the Mercure bundle to push messages to clients. /** * @Route("/message", name="sendMessage", methods={"POST"}) */ public function __invoke(PublisherInterface $publisher, Request $request): RedirectResponse { $update = new Update(‘https://chat.afsy.fr/message’, json_encode([ ‘message’ => $request->request->get(‘message’), ])); $publisher($update); return ..

Read more

I’m on a symfony project and i’m using docker here’s my docker-compose.yml : version: ‘3.7’ services: db: image: mysql:latest container_name: ruakh_db restart: always volumes: – db-data:/var/lib/mysql environment: MYSQL_ALLOW_EMPTY_PASSWORD: "yes" networks: – dev phpmyadmin: image: phpmyadmin:latest container_name: ruakh_phpmyadmin restart: always depends_on: – db ports: – 8080:80 environment: PMA_HOST: db networks: – dev maildev: image: maildev/maildev container_name: ..

Read more