Skip to content

Commit 78d32cf

Browse files
author
Kalle Vuorjoki
committed
DE-12: Support PHP 8
1 parent b7c82d8 commit 78d32cf

File tree

5 files changed

+30
-22
lines changed

5 files changed

+30
-22
lines changed

.ddev/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: drupal-elasticsearch
22
type: drupal9
33
docroot: web
4-
php_version: "7.3"
4+
php_version: "8.1"
55
webserver_type: nginx-fpm
66
router_http_port: "80"
77
router_https_port: "443"

.ddev/docker-compose.elasticsearch.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ services:
33
elasticsearch:
44
container_name: ddev-${DDEV_SITENAME}-elasticsearch
55
hostname: ${DDEV_SITENAME}-elasticsearch
6-
image: elasticsearch:${ELASTICSEARCH_VERSION}
6+
# Support for .env files has been dropped, @see https://github.com/drud/ddev/discussions/2940
7+
#image: elasticsearch:${ELASTICSEARCH_VERSION}
8+
image: elasticsearch:7.14.2
79
expose:
810
- "9200"
911
- "9300"

.ddev/docker-compose.kibana.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ services:
33
kibana:
44
container_name: ddev-${DDEV_PROJECT}-kibana
55
hostname: ${DDEV_PROJECT}-kibana
6-
image: docker.elastic.co/kibana/kibana:${ELASTICSEARCH_VERSION}
6+
# Support for .env files has been dropped, @see https://github.com/drud/ddev/discussions/2940
7+
#image: docker.elastic.co/kibana/kibana:${ELASTICSEARCH_VERSION}
8+
image: docker.elastic.co/kibana/kibana:7.14.2
79
restart: "no"
810
expose:
911
- '5601'

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
For local development use [DDEV](https://github.com/drud/ddev)
44

55
Requirements on local machine:
6-
- PHP 7.3 (Make sure have same version `php --version`, otherwise `composer install` might fail)
7-
- Composer 2.x
86
- Docker
97
- mkcert [Installation quite](https://ddev.readthedocs.io/en/stable/#installationupgrade-script-linux-and-macos)
108

119
```sh
12-
composer install
10+
ddev composer install
1311
ddev start
1412
```
1513

composer.json

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@
1717
"require": {
1818
"composer/installers": "^1.9",
1919
"cweagans/composer-patches": "^1.7",
20-
"drupal/admin_toolbar": "^3.0",
21-
"drupal/core-composer-scaffold": "^9.2",
22-
"drupal/core-project-message": "^9.2",
23-
"drupal/core-recommended": "^9.2",
24-
"drupal/devel": "^4.1.1",
25-
"drupal/elasticsearch_connector": "7.0.0-alpha3",
20+
"drupal/admin_toolbar": "^3.0.3",
21+
"drupal/core-composer-scaffold": "^9.3",
22+
"drupal/core-project-message": "^9.3",
23+
"drupal/core-recommended": "^9.3",
24+
"drupal/devel": "^4.1.3",
25+
"drupal/elasticsearch_connector": "8.0.x-dev",
2626
"drupal/geolocation": "^3.7",
27-
"drupal/search_api": "^1.19",
27+
"drupal/search_api": "^1.22",
2828
"drupal/search_api_location": "^1.0",
29-
"drupal/search_api_solr": "^4.1",
30-
"drupal/token": "^1.9",
29+
"drupal/search_api_solr": "^4.2.6",
30+
"drupal/token": "^1.10",
3131
"drush/drush": "^10"
3232
},
3333
"conflict": {
@@ -36,7 +36,14 @@
3636
"minimum-stability": "dev",
3737
"prefer-stable": true,
3838
"config": {
39-
"sort-packages": true
39+
"sort-packages": true,
40+
"allow-plugins": {
41+
"composer/installers": true,
42+
"dealerdirect/phpcodesniffer-composer-installer": true,
43+
"cweagans/composer-patches": true,
44+
"drupal/core-composer-scaffold": true,
45+
"drupal/core-project-message": true
46+
}
4047
},
4148
"scripts": {
4249
"post-install-cmd": [
@@ -49,8 +56,7 @@
4956
"patches": {
5057
"drupal/elasticsearch_connector": {
5158
"3189051 - Handle pre-epoch dates": "https://www.drupal.org/files/issues/2021-06-25/3189051-pre-epoch-dates-10.patch",
52-
"3116153 - Add support for geofield mapping": "https://www.drupal.org/files/issues/2020-11-17/elasticsearch_connector-support_geofield-3116153-3.patch",
53-
"3153850 - getCluster error in getIndexName": "https://git.drupalcode.org/project/elasticsearch_connector/-/merge_requests/4.diff"
59+
"3116153 - Add support for geofield mapping": "https://www.drupal.org/files/issues/2020-11-17/elasticsearch_connector-support_geofield-3116153-3.patch"
5460
}
5561
},
5662
"patchLevel": {
@@ -107,10 +113,10 @@
107113
},
108114
"require-dev": {
109115
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.1",
110-
"drupal/core-dev": "^9.2",
111-
"drupal/coder": "~8.3.12",
112-
"mglaman/drupal-check": "^1.1",
113-
"mglaman/phpstan-drupal": "^0.12.8",
116+
"drupal/core-dev": "^9.3",
117+
"drupal/coder": "~8.3.13",
118+
"mglaman/drupal-check": "^1.2",
119+
"mglaman/phpstan-drupal": "^1.1",
114120
"phpspec/prophecy-phpunit": "^2"
115121
}
116122
}

0 commit comments

Comments
 (0)