From ddef4fbe295f8a1b6aa1a0a7fdf25e2dc4fca668 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 21 Feb 2018 19:01:49 +0100 Subject: [PATCH] [TASK] Use the renamed phplist/core package The core package has been renamed. So the dependencies need to be updated. --- .travis.yml | 6 +++--- CHANGELOG.md | 1 + README.md | 5 +++-- composer.json | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.travis.yml b/.travis.yml index da04022..5a86b43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,7 +50,7 @@ before_script: echo "Creating the database and importing the database schema"; mysql -e "CREATE DATABASE ${PHPLIST_DATABASE_NAME};"; mysql -u root -e "GRANT ALL ON ${PHPLIST_DATABASE_NAME}.* TO '${PHPLIST_DATABASE_USER}'@'%';"; - mysql ${PHPLIST_DATABASE_NAME} < vendor/phplist/phplist4-core/Database/Schema.sql; + mysql ${PHPLIST_DATABASE_NAME} < vendor/phplist/core/Database/Schema.sql; script: - > @@ -81,9 +81,9 @@ script: - > echo; echo "Running PHPMD"; - vendor/bin/phpmd src/ text vendor/phplist/phplist4-core/Configuration/PHPMD/rules.xml; + vendor/bin/phpmd src/ text vendor/phplist/core/Configuration/PHPMD/rules.xml; - > echo; echo "Running PHP_CodeSniffer"; - vendor/bin/phpcs --standard=vendor/phplist/phplist4-core/Configuration/PhpCodeSniffer/ src/ tests/; + vendor/bin/phpcs --standard=vendor/phplist/core/Configuration/PhpCodeSniffer/ src/ tests/; diff --git a/CHANGELOG.md b/CHANGELOG.md index 28fd152..7de1dbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](https://semver.org/). - REST action for getting all subscribers for a list (#83) ### Changed +- Use the renamed phplist/core package (#97) - Adopt more of the default Symfony project structure (#92, #93, #94, #95) ### Deprecated diff --git a/README.md b/README.md index fb932af..3e9405c 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ phpList is an open source newsletter manager. This module is the REST API for phpList 4, providing functions for superusers to manage lists, subscribers and subscriptions via REST calls. It uses -functionality from the `phplist/phplist4-core` module (the phpList 4 core). +functionality from the `phplist/core` module (the phpList 4 core). It does not contain any SQL queries, uses functionality from the new core for DB access. @@ -40,7 +40,8 @@ which also has more detailed installation instructions in the README. You can try out the API using pre-prepared requests and the Postman GUI tool. Install Postman as a browser extension or stand-alone app, open the -[phpList 4 REST API Demo collection](https://documenter.getpostman.com/view/3293511/phplist-4-rest-api-demo/RVftkC9t#4710e871-973d-46fa-94b7-727fdc292cd5) and click 'Run in Postman'. +[phpList 4 REST API Demo collection](https://documenter.getpostman.com/view/3293511/phplist-4-rest-api-demo/RVftkC9t#4710e871-973d-46fa-94b7-727fdc292cd5) +and click "Run in Postman". ## Contributing to this package diff --git a/composer.json b/composer.json index e6695d0..b635f2a 100644 --- a/composer.json +++ b/composer.json @@ -27,7 +27,7 @@ "require": { "php": "~7.0.0 || ~7.1.0 || ~7.2.0", - "phplist/phplist4-core": "4.0.x-dev", + "phplist/core": "4.0.x-dev", "friendsofsymfony/rest-bundle": "^2.2", "roave/security-advisories": "dev-master" @@ -86,7 +86,7 @@ "symfony-var-dir": "var", "symfony-web-dir": "public", "symfony-tests-dir": "tests", - "phplist/phplist4-core": { + "phplist/core": { "bundles": [ "FOS\\RestBundle\\FOSRestBundle", "PhpList\\RestBundle\\PhpListRestBundle"