From cb164528d237ca208841392f545d63fb15a91432 Mon Sep 17 00:00:00 2001 From: pfleu <fleutotp@gmail.com> Date: Tue, 10 Jan 2023 11:15:04 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20bundle=20apache=20pack=20pour=20cr?= =?UTF-8?q?=C3=A9er=20le=20htaccess.=20Fix=20responsive=20sur=20base=20lay?= =?UTF-8?q?out.=20Ajout=20chemin=20commande=20python=20dans=20.env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + composer.json | 1 + src/Manager/WiktionaryManager.php | 2 +- templates/base.html.twig | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c21998b..e832733 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ composer.lock symfony.lock /images/ +public/.htaccess ###> symfony/framework-bundle ### /.env diff --git a/composer.json b/composer.json index ace484c..6f6f672 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,7 @@ "phpdocumentor/reflection-docblock": "^5.3", "phpstan/phpdoc-parser": "^1.8", "sensio/framework-extra-bundle": "^6.1", + "symfony/apache-pack": "^1.0", "symfony/asset": "5.4.*", "symfony/console": "5.4.*", "symfony/doctrine-messenger": "5.4.*", diff --git a/src/Manager/WiktionaryManager.php b/src/Manager/WiktionaryManager.php index 1fa1ef0..a3a5849 100644 --- a/src/Manager/WiktionaryManager.php +++ b/src/Manager/WiktionaryManager.php @@ -43,7 +43,7 @@ class WiktionaryManager if ($language != 'en') { return []; } - $result = exec('python '.__DIR__.'/../Wikstraktor/wikstraktor.py ' . $word); + $result = exec($_ENV['WIKSTRAKTOR_COMMAND'] . ' ' . $word . '"'); //dump($result);die(); $dataArray = json_decode($result, true); diff --git a/templates/base.html.twig b/templates/base.html.twig index befd3f5..611131f 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -2,6 +2,7 @@ <html> <head> <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> <title>{% block title %}Welcome!{% endblock %}</title> <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>âš«ï¸</text></svg>"> {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #} -- GitLab