diff --git a/README.md b/README.md index c5f3ac86..6333d245 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ To report bugs use [engelsystem/issues](https://github.com/engelsystem/engelsyst ## Installation ### Requirements - * PHP >= 7.1 + * PHP >= 7.2 * Required modules: * dom * json @@ -150,7 +150,7 @@ docker-compose up Run these commands once initially and then as required after changes -``` +```bash # Install composer dependencies docker exec -it engelsystem_dev_es_workspace_1 composer i @@ -169,7 +169,7 @@ docker exec -it engelsystem_dev_es_workspace_1 bin/migrate While developing you may use the watch mode to rebuild the system on changes -``` +```bash # Run a front-end build docker exec -it engelsystem_dev_es_workspace_1 yarn build:watch ``` @@ -199,10 +199,10 @@ We use gettext. You may use POEdit to extract new texts from the sourcecode. Ple ### Code style Please ensure that your pull requests follow the [PSR-12](https://www.php-fig.org/psr/psr-12/) coding style guide. You can check that by running -```php +```bash composer run phpcs ``` You may auto fix reported issues by running -```php +```bash composer run phpcbf ``` diff --git a/composer.json b/composer.json index d76abe94..0af3b2a6 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "phpcbf": "phpcbf -p" }, "require": { - "php": ">=7.1.0", + "php": ">=7.2.0", "ext-json": "*", "ext-libxml": "*", "ext-mbstring": "*", @@ -40,8 +40,7 @@ "swiftmailer/swiftmailer": "^6.2", "symfony/http-foundation": "^4.3", "symfony/psr-http-message-bridge": "^1.2", - "twig/extensions": "^1.5", - "twig/twig": "~2.6.0", + "twig/twig": "^3.0", "vlucas/phpdotenv": "^3.3" }, "require-dev": { diff --git a/resources/views/layouts/parts/navbar.twig b/resources/views/layouts/parts/navbar.twig index 0b2eee63..9045601b 100644 --- a/resources/views/layouts/parts/navbar.twig +++ b/resources/views/layouts/parts/navbar.twig @@ -1,5 +1,3 @@ -{% import _self as elements %} - {% macro toolbar_item(label, link, active_page, icon) %} @@ -36,23 +34,23 @@