diff --git a/.gitignore b/.gitignore index c21998bc0b4809bafb6bd79b0b8be62d8c238b4a..e832733f39bd8f95a61cbca7bab709bd787924eb 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 ace484c008e975406cebae2c577deda3d40ca7e9..6f6f67223f678d3d5f18ecc662db66059653fa7b 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 1fa1ef0e5a8389e5e4fb4e1c6a31b6f05f35113c..a3a5849dc78e7977e360252d89f6451f26ff24fa 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 befd3f5fbb698da7ab79547d5e3d8eef8ac0a496..611131fd9b154c55a82a9434ec240b75152db689 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 #}