mirror of
https://github.com/silverstripe/silverstripe-comments
synced 2024-10-22 11:05:49 +02:00
SS4 compat: Update composer and YAML config, rename classes, update readme
This commit is contained in:
parent
2b8ff849ed
commit
c698632aae
19
.travis.yml
19
.travis.yml
@ -8,18 +8,17 @@ addons:
|
||||
- tidy
|
||||
|
||||
php:
|
||||
- 5.3
|
||||
- 5.4
|
||||
- 5.5
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
|
||||
before_install:
|
||||
- pip install --user codecov
|
||||
|
||||
env:
|
||||
global:
|
||||
- DB=MYSQL CORE_RELEASE=3.1
|
||||
- DB=MYSQL CORE_RELEASE=4
|
||||
- MODULE_PATH=comments
|
||||
|
||||
# Set to 1 in the matrix to enable code coverage
|
||||
@ -29,15 +28,15 @@ matrix:
|
||||
include:
|
||||
- php: 5.6
|
||||
#CommentsListTest breaks with this env: DB=MYSQL CORE_RELEASE=3.2 COVERAGE=1
|
||||
env: DB=SQLITE CORE_RELEASE=3.2 COVERAGE=1
|
||||
env: DB=SQLITE CORE_RELEASE=4 COVERAGE=1
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CORE_RELEASE=3
|
||||
- php: 5.6
|
||||
env: DB=MYSQL CORE_RELEASE=3.1
|
||||
- php: 5.6
|
||||
env: DB=PGSQL CORE_RELEASE=3.2
|
||||
allow_failures:
|
||||
env: DB=MYSQL CORE_RELEASE=4
|
||||
- php: 7.0
|
||||
env: DB=MYSQL CORE_RELEASE=4
|
||||
- php: 7.1
|
||||
env: DB=MYSQL CORE_RELEASE=4
|
||||
- php: 5.6
|
||||
env: DB=PGSQL CORE_RELEASE=4
|
||||
|
||||
before_script:
|
||||
- phpenv rehash
|
||||
|
@ -36,7 +36,7 @@ inside the docs folder.
|
||||
|
||||
## Requirements
|
||||
|
||||
* SilverStripe 3.1
|
||||
* SilverStripe ^4.0
|
||||
|
||||
## Installation
|
||||
|
||||
|
@ -4,6 +4,6 @@ Name: commentssitetree
|
||||
only:
|
||||
moduleexists: 'cms'
|
||||
---
|
||||
SiteTree:
|
||||
SilverStripe\CMS\Model\SiteTree:
|
||||
comments:
|
||||
enabled_cms: true
|
||||
|
@ -2,9 +2,9 @@
|
||||
Name: commentroutes
|
||||
After: framework/routes#coreroutes
|
||||
---
|
||||
Director:
|
||||
SilverStripe\Control\Director:
|
||||
rules:
|
||||
# handle old 2.4 style urls
|
||||
'CommentingController//$Action/$ID/$OtherID': 'CommentingController'
|
||||
'PageComments/$Action/$ID/$OtherID': 'CommentingController'
|
||||
'PageComments_Controller/$Action/$ID/$OtherID': 'CommentingController'
|
||||
'CommentingController//$Action/$ID/$OtherID': 'SilverStripe\Comments\Controllers\CommentingController'
|
||||
'PageComments/$Action/$ID/$OtherID': 'SilverStripe\Comments\Controllers\CommentingController'
|
||||
'PageComments_Controller/$Action/$ID/$OtherID': 'SilverStripe\Comments\Controllers\CommentingController'
|
||||
|
@ -1,28 +1,27 @@
|
||||
{
|
||||
"name": "silverstripe/comments",
|
||||
"description": "This module provides commenting functionality for Pages and other DataObjects on your SilverStripe site.",
|
||||
"type": "silverstripe-module",
|
||||
"keywords": ["silverstripe", "comments"],
|
||||
"authors": [{
|
||||
"name": "Will Rossiter",
|
||||
"email": "will@fullscreen.io"
|
||||
}],
|
||||
"require": {
|
||||
"assertchris/hash-compat": "~1.0",
|
||||
"silverstripe/framework": "~3.1",
|
||||
"colymba/gridfield-bulk-editing-tools": "~2.1"
|
||||
},
|
||||
"suggest": {
|
||||
"ezyang/htmlpurifier": "Standards compliant HTML filter written in PHP",
|
||||
"silverstripe/cms": "The SilverStripe Content Management System"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/PHPUnit": "~3.7@stable"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "2.1.x-dev"
|
||||
}
|
||||
},
|
||||
"license": "BSD-3-Clause"
|
||||
"name": "silverstripe/comments",
|
||||
"description": "This module provides commenting functionality for Pages and other DataObjects on your SilverStripe site.",
|
||||
"type": "silverstripe-module",
|
||||
"keywords": ["silverstripe", "comments"],
|
||||
"authors": [{
|
||||
"name": "Will Rossiter",
|
||||
"email": "will@fullscreen.io"
|
||||
}],
|
||||
"require": {
|
||||
"silverstripe/framework": "^4.0@dev",
|
||||
"colymba/gridfield-bulk-editing-tools": "~2.1"
|
||||
},
|
||||
"suggest": {
|
||||
"ezyang/htmlpurifier": "Standards compliant HTML filter written in PHP",
|
||||
"silverstripe/cms": "The SilverStripe Content Management System"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/PHPUnit": "~4.8"
|
||||
},
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "3.x-dev"
|
||||
}
|
||||
},
|
||||
"license": "BSD-3-Clause"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user