Skip to content

Commit 9a47933

Browse files
committed
repairs composer install bug
1 parent 71fd718 commit 9a47933

File tree

3 files changed

+70
-68
lines changed

3 files changed

+70
-68
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ PHP Based administration tool for PostgreSQL. Blazing fast routing with [Slim Fr
44

55
[![Packagist](https://img.shields.io/packagist/dm/huasofoundries/phppgadmin6.svg)](https://packagist.org/packages/huasofoundries/phppgadmin6)
66
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/289a56c1c7d94216b3d089c220689e9e)](https://www.codacy.com/app/amenadiel/phpPgAdmin6?utm_source=github.com&utm_medium=referral&utm_content=HuasoFoundries/phpPgAdmin6&utm_campaign=Badge_Grade)
7-
[![StyleCI](https://styleci.io/repos/21398998/shield?branch=develop)](https://styleci.io/repos/21398998)
87
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/HuasoFoundries/phpPgAdmin6/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/HuasoFoundries/phpPgAdmin6/?branch=develop)
98
[![Build Status](https://scrutinizer-ci.com/g/HuasoFoundries/phpPgAdmin6/badges/build.png?b=develop)](https://scrutinizer-ci.com/g/HuasoFoundries/phpPgAdmin6/build-status/develop)
109
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FHuasoFoundries%2FphpPgAdmin6.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2FHuasoFoundries%2FphpPgAdmin6?ref=badge_shield)
@@ -27,7 +26,7 @@ Other enhancements are in progress and would be a nice to have:
2726

2827
## Requirements
2928

30-
- PHP 5.6+ (but you should really, really consider switching to at least v7.1)
29+
- PHP 7.1+ (but you should really, really consider switching to at least v7.1)
3130
- ext-psql
3231
- [Composer](https://getcomposer.org/download/)
3332

composer.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
"slim/twig-view": "~2.5.1",
3636
"twig/twig": "~1.42.4",
3737
"adodb/adodb-php": "^5.20",
38-
"slim/flash": "^0.4.0"
38+
"slim/flash": "^0.4.0",
39+
"symfony/yaml": "^5.0"
3940
},
4041
"require-dev": {
4142
"kint-php/kint": "~3.3",
@@ -48,12 +49,14 @@
4849
"scripts": {
4950
"fix_temp_permissions": [
5051
"php -r \"chmod( __DIR__ . '/temp', 0777);\"",
51-
"php -r \"chmod( __DIR__ . '/temp/logs', 0777);\"",
52-
"php -r \"chmod( __DIR__ . '/temp/sessions', 0777);\"",
5352
"php -r \"chmod( __DIR__ . '/temp/twigcache', 0777);\""
5453
],
55-
"clear": "@fix_temp_permissions",
56-
"post-install-cmd": "@clear_temp_folder",
57-
"post-create-project-cmd": "@clear_temp_folder"
54+
"clear_twig_cache": [
55+
"@fix_temp_permissions",
56+
"php -r \"array_map( 'unlink', array_filter((array) glob('temp/twigcache/**/*.php', GLOB_BRACE)));\"",
57+
"php -r \"array_map( 'rmdir', array_filter((array) glob('temp/twigcache/*', GLOB_BRACE)));\""
58+
],
59+
"post-install-cmd": "@clear_twig_cache",
60+
"post-create-project-cmd": "@clear_twig_cache"
5861
}
5962
}

composer.lock

Lines changed: 60 additions & 60 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)