Skip to content

Commit 1aabe89

Browse files
oliverkleeSam Tuke
authored andcommitted
[TASK] Use the renamed phplist/core package (#53)
The core package has been renamed. So the dependencies need to be updated.
1 parent 0edd08a commit 1aabe89

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ named `phplist`, and the password is `batterystaple`, the command looks like
8585
this:
8686

8787
```bash
88-
mysql -u phplist_test --password=batterystaple phplist_test < vendor/phplist/phplist4-core/Database/Schema.sql
88+
mysql -u phplist_test --password=batterystaple phplist_test < vendor/phplist/core/Database/Schema.sql
8989
```
9090

9191
When running the integration tests, you will need to specify the database name
@@ -108,13 +108,13 @@ We will only merge pull requests that follow the project's coding style.
108108
Please check your code with the provided PHP_CodeSniffer standard:
109109

110110
```bash
111-
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/
111+
vendor/bin/phpcs --standard=vendor/phplist/core/Configuration/PhpCodeSniffer/ src/ tests/
112112
```
113113

114114
Please also check the code structure using PHPMD:
115115

116116
```bash
117-
vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml
117+
vendor/bin/phpmd src/ text vendor/phplist/core/Configuration/PHPMD/rules.xml
118118
```
119119

120120
And also please run the static code analysis:
@@ -126,7 +126,7 @@ vendor/bin/phpstan analyse -l 5 src/ tests/
126126
You can also run all code style checks using one long line from a bash shell:
127127

128128
```bash
129-
find src/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l && vendor/bin/phpstan analyse -l 5 src/ tests/ && vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml && vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/
129+
find src/ tests/ -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l && vendor/bin/phpstan analyse -l 5 src/ tests/ && vendor/bin/phpmd src/ text vendor/phplist/core/Configuration/PHPMD/rules.xml && vendor/bin/phpcs --standard=vendor/phplist/core/Configuration/PhpCodeSniffer/ src/ tests/
130130
```
131131

132132
This will execute all tests except for the unit tests and the integration

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ before_script:
5050
echo "Creating the database and importing the database schema";
5151
mysql -e "CREATE DATABASE ${PHPLIST_DATABASE_NAME};";
5252
mysql -u root -e "GRANT ALL ON ${PHPLIST_DATABASE_NAME}.* TO '${PHPLIST_DATABASE_USER}'@'%';";
53-
mysql ${PHPLIST_DATABASE_NAME} < vendor/phplist/phplist4-core/Database/Schema.sql;
53+
mysql ${PHPLIST_DATABASE_NAME} < vendor/phplist/core/Database/Schema.sql;
5454
5555
script:
5656
- >
@@ -81,9 +81,9 @@ script:
8181
- >
8282
echo;
8383
echo "Running PHPMD";
84-
vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml;
84+
vendor/bin/phpmd src/ text vendor/phplist/core/Configuration/PHPMD/rules.xml;
8585
8686
- >
8787
echo;
8888
echo "Running PHP_CodeSniffer";
89-
vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/;
89+
vendor/bin/phpcs --standard=vendor/phplist/core/Configuration/PhpCodeSniffer/ src/ tests/;

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
1010
- Integration tests for the dev and test environment (#44)
1111

1212
### Changed
13+
- Use the renamed phplist/core package (#53)
1314
- Adopt more of the default Symfony project structure (#49, #50, #51)
1415

1516
### Deprecated

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"require": {
2727
"php": "~7.0.0 || ~7.1.0 || ~7.2.0",
2828

29-
"phplist/phplist4-core": "4.0.x-dev",
29+
"phplist/core": "4.0.x-dev",
3030

3131
"roave/security-advisories": "dev-master"
3232
},
@@ -83,7 +83,7 @@
8383
"symfony-var-dir": "var",
8484
"symfony-web-dir": "public",
8585
"symfony-tests-dir": "tests",
86-
"phplist/phplist4-core": {
86+
"phplist/core": {
8787
"bundles": [],
8888
"routes": {}
8989
}

0 commit comments

Comments
 (0)