Skip to content

Commit 3001e1d

Browse files
committed
update gh action scripts, add mew method to app class
1 parent 8520aeb commit 3001e1d

File tree

4 files changed

+57
-0
lines changed

4 files changed

+57
-0
lines changed

.github/changelog.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
options:
2+
title: '## Change Log'
3+
style: gh-release
4+
filters:
5+
# message length >= 12
6+
- name: msgLen
7+
minLen: 12
8+
# message words >= 3
9+
- name: wordsLen
10+
minLen: 3
11+
- name: keywords
12+
keywords: ['format code']
13+
exclude: true
14+
15+
# not matched will use 'Other' group.
16+
groups:
17+
- name: New
18+
keywords: [add, new]
19+
- name: Fixed
20+
startWiths: [add, new]
21+
keywords: [add, new]
22+
- name: Feat
23+
startWiths: [feat]
24+
keywords: [feature]
25+
- name: Update
26+
startWiths: [update, 'up:']
27+
keywords: [update]

.github/dependabot.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: composer
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: "github-actions"
10+
directory: "/"
11+
schedule:
12+
# Check for updates to GitHub Actions every weekday
13+
interval: "daily"

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
.idea/
66
.phpintel/
7+
.phpdoc/
8+
docs/api/
79
caches/
810
vendor/
911
!README.md

src/AbstractApplication.php

+15
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,21 @@ public function getConfig(): array
670670
return $this->config;
671671
}
672672

673+
/**
674+
* @param string $name
675+
* @param array $default
676+
*
677+
* @return array
678+
*/
679+
public function getArrayParam(string $name, array $default = []): array
680+
{
681+
if (isset($this->config[$name])) {
682+
return (array)$this->config[$name];
683+
}
684+
685+
return $default;
686+
}
687+
673688
/**
674689
* Get config param value
675690
*

0 commit comments

Comments
 (0)