File tree 5 files changed +13
-10
lines changed 5 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 1
1
name : magento-development
2
2
services :
3
3
php :
4
- version : " 7.4 "
4
+ version : " 8.1 "
5
5
mysql :
6
6
version : " 10.4"
7
7
elasticsearch :
Original file line number Diff line number Diff line change @@ -159,19 +159,19 @@ public function getVarnishServerConfigInfo () {
159
159
160
160
public function getExcludedRoutes () {
161
161
$ path = "jetrails_varnish/cache_exclusion_patterns/excluded_routes " ;
162
- $ routes = explode ( "\n" , $ this ->_getConfigValue ( $ path ) );
162
+ $ routes = explode ( "\n" , $ this ->_getConfigValue ( $ path ) ?? "" );
163
163
return array_filter ( $ routes , function ( $ i ) { return $ i != "" ; });
164
164
}
165
165
166
166
public function getExcludedWildcardPatterns () {
167
167
$ path = "jetrails_varnish/cache_exclusion_patterns/excluded_wildcard_patterns " ;
168
- $ routes = explode ( "\n" , $ this ->_getConfigValue ( $ path ) );
168
+ $ routes = explode ( "\n" , $ this ->_getConfigValue ( $ path ) ?? "" );
169
169
return array_filter ( $ routes , function ( $ i ) { return $ i != "" ; });
170
170
}
171
171
172
172
public function getExcludedRegExpPatterns () {
173
173
$ path = "jetrails_varnish/cache_exclusion_patterns/excluded_regexp_patterns " ;
174
- $ routes = explode ( "\n" , $ this ->_getConfigValue ( $ path ) );
174
+ $ routes = explode ( "\n" , $ this ->_getConfigValue ( $ path ) ?? "" );
175
175
return array_filter ( $ routes , function ( $ i ) { return $ i != "" ; });
176
176
}
177
177
Original file line number Diff line number Diff line change @@ -175,12 +175,12 @@ public function modifyRecv ( $node ) {
175
175
$ value = preg_replace (
176
176
"/if\s*\(\s*!req.http.X-Magento-Tags-Pattern\s+&&\s+!req.http.X-Pool\s*\)\s*{/m " ,
177
177
"if ( !req.http.X-Magento-Tags-Pattern && !req.http.X-Pool && !req.http.JR-Purge ) { " ,
178
- $ value,
178
+ $ value
179
179
);
180
180
$ value = preg_replace (
181
181
"/return\s*\(\s*synth\s*\(\s*400,\s* \"X-Magento-Tags-Pattern or X-Pool header required \"\s*\)\s*\);/m " ,
182
182
"return (synth(400, \"X-Magento-Tags-Pattern or X-Pool or JR-Purge header required \")); " ,
183
- $ value,
183
+ $ value
184
184
);
185
185
$ value = preg_replace (
186
186
"/return\s*\(\s*synth\s*\(\s*200,\s* \"Purged \"\s*\)\s*\);/m " ,
@@ -190,7 +190,7 @@ public function modifyRecv ( $node ) {
190
190
" } " ,
191
191
" return (synth(200, \"Purged \")); " ,
192
192
]),
193
- $ value,
193
+ $ value
194
194
);
195
195
$ raw = "backend " . $ node ["identifier " ] . " { " . $ value . "} " ;
196
196
$ node ["value " ] = $ value ;
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ restart-varnish: ## Restart varnish container (updated vcl file)
43
43
44
44
dev-create : # # Create development environment
45
45
composer global config repositories.magento composer https://repo.magento.com/
46
- composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.2 ./public_html
47
- cd public_html && ln -s ../default .vcl ./default.vcl
48
- cd public_html && ln -s ../default .custom.vcl ./default.custom.vcl
46
+ composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.4 ./public_html
47
+ cd public_html && ln -s ../docker-only .vcl ./default.vcl
48
+ cd public_html && ln -s ../docker-only .custom.vcl ./default.custom.vcl
49
49
cd public_html && ln -s ../.magento.docker.yml ./.magento.docker.yml
50
50
cd public_html && ln -s ../.magento.setup.params ./.magento.setup.params
51
51
cd public_html && ln -s ../docker-compose.override.yml ./docker-compose.override.yml
Original file line number Diff line number Diff line change 19
19
"autoload" : {
20
20
"psr-4" : { "JetRails\\ Varnish\\ " : " " },
21
21
"files" : [ " registration.php" ]
22
+ },
23
+ "require" : {
24
+ "php" : " >=7.2"
22
25
}
23
26
}
You can’t perform that action at this time.
0 commit comments