Compare commits

...

171 Commits
4.3.5 ... 4

Author SHA1 Message Date
Guy Sartorelli
603ffc064b
Merge branch '4.13' into 4 2023-09-18 11:32:55 +12:00
Guy Sartorelli
9372698a6b
Merge pull request #361 from creative-commoners/pulls/4.13/exclude
MNT Fix exclude node
2023-09-07 17:16:32 +12:00
Steve Boyd
3887540da7 MNT Fix exclude node 2023-09-07 14:14:12 +12:00
Guy Sartorelli
635d8be6fc
Merge branch '4.13' into 4 2023-08-29 10:28:52 +12:00
Guy Sartorelli
036f173a38
MNT Run ORM tests in parallel to other tests (#356) 2023-08-07 11:57:39 +12:00
Guy Sartorelli
6b966add42
MNT Update development dependencies 2023-04-26 12:45:22 +12:00
Guy Sartorelli
3445801412
Merge branch '4.13' into 4 2023-04-26 12:45:22 +12:00
Guy Sartorelli
a8f62aab68
MNT Update development dependencies 2023-04-26 12:08:16 +12:00
Guy Sartorelli
7264db0e34
MNT Update release dependencies 2023-04-26 12:08:13 +12:00
Guy Sartorelli
b18c0372f2
MNT Update development dependencies 2023-03-29 12:37:21 +13:00
Guy Sartorelli
bd202820de
MNT Update release dependencies 2023-03-29 12:37:18 +13:00
Maxime Rainville
5ce684af70
Merge pull request #351 from creative-commoners/pulls/4/dispatch-ci
MNT Use gha-dispatch-ci
2023-03-23 12:07:25 +13:00
Steve Boyd
ea654c1c9e MNT Use gha-dispatch-ci 2023-03-21 14:10:08 +13:00
Guy Sartorelli
f2f7455177
MNT Update development dependencies 2023-03-10 16:31:44 +13:00
Guy Sartorelli
f38f39761e
MNT Update release dependencies 2023-03-10 16:31:40 +13:00
Guy Sartorelli
e9fcd38f52
MNT Update development dependencies 2023-03-10 12:21:28 +13:00
Steve Boyd
5e497fa85f Merge branch '4.12' into 4 2023-02-02 16:37:27 +13:00
Guy Sartorelli
1049f90978
Merge pull request #348 from creative-commoners/pulls/4.12/test-other-modules
MNT Test additional modules
2023-01-26 14:09:42 +13:00
Steve Boyd
44a3fdb0ea MNT Test additional modules 2023-01-26 10:20:05 +13:00
Steve Boyd
f10a0206af
MNT Update development dependencies (#346) 2022-12-21 13:11:39 +13:00
Guy Sartorelli
4886a740ad
Merge pull request #345 from creative-commoners/pulls/4.12/stabilise
DEP Stabilise requirements
2022-12-21 12:25:34 +13:00
Steve Boyd
ed70400f9c DEP Stabilise requirements 2022-12-21 11:09:10 +13:00
Guy Sartorelli
0d52cbc913
Merge pull request #344 from creative-commoners/pulls/4.12/frameworktest
FIX Move test requirements out of require-dev
2022-12-21 11:01:04 +13:00
Steve Boyd
62c49cac6d FIX Move test requirements out of require-dev 2022-12-21 10:11:27 +13:00
Guy Sartorelli
ce944e8417
MNT Update development dependencies 2022-12-19 01:59:17 +00:00
Guy Sartorelli
58ada1c9ed
Merge branch '4.12' into 4 2022-12-19 01:59:17 +00:00
Guy Sartorelli
07e1b32a53
MNT Update development dependencies 2022-12-19 01:59:12 +00:00
Guy Sartorelli
0b89a51c0c
Merge branch '4.12-release' into 4.12 2022-12-19 14:55:52 +13:00
Guy Sartorelli
9c3ffd47c5
MNT Update release dependencies 2022-12-19 01:26:11 +00:00
Guy Sartorelli
fe1be1b8b7
MNT Update release dependencies 2022-11-30 03:27:41 +00:00
Guy Sartorelli
6a500ec454
Merge pull request #339 from creative-commoners/pulls/4.12/minor-xdev
MNT Update development dependencies
2022-11-28 12:47:28 +13:00
Steve Boyd
04f9beecf5 MNT Update development dependencies 2022-11-23 16:23:15 +13:00
Guy Sartorelli
7bc208e571
MNT Update development dependencies 2022-11-10 23:51:55 +00:00
Steve Boyd
4f62379f58 Merge branch '4.11' into 4 2022-08-02 18:47:06 +12:00
Steve Boyd
19c057efee Merge branch '4.10' into 4.11 2022-08-02 18:46:56 +12:00
Guy Sartorelli
8691390ad9
Merge pull request #329 from creative-commoners/pulls/4.10/standardise-modules
MNT Standardise modules
2022-08-02 14:29:06 +12:00
Steve Boyd
030e0d60fa MNT Standardise modules 2022-08-01 09:59:21 +12:00
Steve Boyd
a19303860f Merge branch '4.11' into 4 2022-07-25 11:30:18 +12:00
Steve Boyd
4d67d06700 Merge branch '4.10' into 4.11 2022-07-25 11:29:57 +12:00
Guy Sartorelli
56462207b6
Merge pull request #328 from creative-commoners/pulls/4.10/typo
MNT Fix typos
2022-07-22 14:19:00 +12:00
Steve Boyd
5b756664cc MNT Fix typos 2022-07-22 12:01:06 +12:00
Guy Sartorelli
4219d455d5
Merge pull request #326 from creative-commoners/pulls/4.10/module-standards
MNT Use GitHub Actions CI
2022-07-18 10:22:29 +12:00
Steve Boyd
a8d6ffdeab MNT Use GitHub Actions CI 2022-07-18 10:14:54 +12:00
Guy Sartorelli
4eea3f390a Merge branch '4.11' into 4 2022-06-14 11:33:28 +12:00
Maxime Rainville
45921d29de
Merge pull request #324 from creative-commoners/pulls/4.11/public-graphql-folder
ENH Add and ignore public/_graphql
2022-06-07 21:43:21 +12:00
Guy Sartorelli
57195eab03 ENH Add and ignore public/_graphql
silverstripe/graphql v4 needs write access to this directory, so it may
be easier for some developers to have the directory there as soon as
they `composer create_project silverstripe/installer`.

Like `.graphql-generated`, best practice is to not commit this directory
to VCS, and instead let it be filled at deploy time.
2022-06-02 10:33:36 +12:00
Maxime Rainville
7c06e8cbd1
Merge pull request #323 from creative-commoners/pulls/4.11/graphql-folder
ENH Add `.graphql-generated` directory by default
2022-06-01 21:11:26 +12:00
Guy Sartorelli
612ff2922b ENH Add .graphql-generated directory by default.
This directory will be required for all new projects (unless explicitly
opting out of graphql v4) - having this directory by default makes it
easier to set more sane permissions (i.e. not requiring the entire
project root to be writable).
2022-05-30 12:25:47 +12:00
Steve Boyd
3a5f852d31 Merge branch '4.11' into 4 2022-05-10 21:58:20 +12:00
Guy Sartorelli
db70cb692a
Merge pull request #322 from creative-commoners/pulls/4.11/devreq
DEP 4.11 dev requirements
2022-05-06 13:41:58 +12:00
Steve Boyd
8fe8bf5bec DEP 4.11 dev requirements 2022-05-05 12:18:08 +12:00
Guy Sartorelli
f19d383c68
Merge pull request #321 from creative-commoners/pulls/4/remove-pgsql
MNT Only use mysql in matrix
2022-05-03 09:55:28 +12:00
Steve Boyd
fea0ee4a96 MNT Only use mysql in matrix 2022-05-02 11:12:42 +12:00
Guy Sartorelli
7b08763477
Merge pull request #320 from creative-commoners/pull/4/no-allow-failure
MNT Do not allow failures on php 8.1
2022-04-28 16:50:22 +12:00
Steve Boyd
6e5f726df7 MNT Do not allow failures on php 8.1 2022-04-28 15:13:54 +12:00
Sabina Talipova
3ed95a2fc3
Merge pull request #319 from silverstripe/pulls/4/add-composer-installer-plugin
MNT Add composer/installers to allow-plugins by default.
2022-04-26 12:32:13 +12:00
Guy Sartorelli
bba20c5159
MNT Add composer/installers to allow-plugins by default. 2022-04-14 17:01:13 +12:00
Maxime Rainville
ce4615980c
MNT Ignore .graphql-generated in source control (#318) 2022-04-14 09:42:11 +12:00
Maxime Rainville
567236f2e8
Merge pull request #315 from creative-commoners/pulls/4/php74
DEP Set PHP 7.4 as the minimum version
2022-03-07 16:10:35 +13:00
Steve Boyd
d75e848a71 DEP Set PHP 7.4 as the minimum version 2022-02-21 09:51:35 +13:00
GuySartorelli
9a342a58ee
DOC Change "SilverStripe" to "Silverstripe" in readme (#314) 2022-02-02 10:15:45 +13:00
GuySartorelli
55f6e03f6e
ENH Explicitly allow SilverStripe composer plugins (#313)
As of Composer 2.2.0, there is a new configuration property to whitelist plugins which are allowed to run. According to https://getcomposer.org/doc/06-config.md#allow-plugins this will default to disallow all plugins from July 2022.
2022-01-21 10:13:00 +13:00
Steve Boyd
e1d2cd30e6 Merge branch '4.10' into 4 2021-12-22 10:25:41 +13:00
Maxime Rainville
345f091fd4
Merge pull request #312 from creative-commoners/pulls/4/410
DEP 4.10 requirements
2021-12-03 17:36:17 +13:00
Steve Boyd
0bc751ad90 DEP 4.10 requirements 2021-12-02 15:54:33 +13:00
Maxime Rainville
e48b1662a8
Merge pull request #310 from creative-commoners/pulls/4/sapphire-test-nine
API phpunit 9 support
2021-11-10 17:11:08 +13:00
Steve Boyd
54a8b8ce8f API phpunit 9 support 2021-11-04 11:13:45 +13:00
Maxime Rainville
081282cac1 MNT Target 4.x release 2021-09-03 11:53:14 +12:00
Maxime Rainville
2065c471ed MNT Targget 4.9.x release 2021-09-03 11:52:06 +12:00
Maxime Rainville
7ee712f47c
Merge pull request #309 from creative-commoners/pulls/4/cow-update
MNT supress changelog generation and loosen dependency constraint
2021-08-25 21:05:58 +12:00
Maxime Rainville
d1fcd1c061 MNT supress changelog generation and loosen dependency constraint 2021-08-25 18:12:01 +12:00
Maxime Rainville
e93ef98999
Merge pull request #308 from creative-commoners/pulls/4/sendmail
ENH Use Swift_SendmailTransport for new projects
2021-08-20 13:08:16 +12:00
Steve Boyd
be9d875141 ENH Use Swift_SendmailTransport for new projects 2021-08-19 09:57:24 +12:00
Daniel Hensby
ab68119de6
Merge pull request #306 from s-en-o/patch-1
Fix typo
2021-06-21 15:43:17 +01:00
Seno
9487628f7a
Fix typo 2021-06-21 20:58:29 +12:00
Steve Boyd
26e55e5226 Merge branch '4.8' into 4 2021-05-21 13:45:50 +12:00
Steve Boyd
6bb9c73137
Merge pull request #303 from creative-commoners/pulls/4.8/update-composer-dep
MNT Update composer dep for 4.8 release
2021-05-04 16:53:04 +12:00
Maxime Rainville
c90a8d3729 MNT Update composer dep for 4.8 release 2021-05-04 16:35:51 +12:00
Bryn Whyman
221b39bb27
Merge pull request #302 from creative-commoners/pulls/4/login-forms-changelog
ENH Add login-forms to changelog template
2021-04-30 12:10:53 +12:00
Steve Boyd
4e1fa260ee ENH Add login-forms to changelog template 2021-04-30 12:06:27 +12:00
Andre Kiste
69df70b045
Merge pull request #301 from creative-commoners/pulls/4/behat-framework
MNT Use admin behat suite instead of framework
2021-04-27 17:35:35 +12:00
Andre Kiste
4e47962d23
Merge pull request #299 from creative-commoners/pulls/4/multitab-frameworktest
MNT Bump frameworktest
2021-04-27 17:35:28 +12:00
Steve Boyd
5811293a74 MNT Use admin behat suite instead of framework 2021-04-27 12:44:46 +12:00
Steve Boyd
6961632875 MNT Bump frameworktest 2021-04-27 12:36:01 +12:00
Andre Kiste
37f30ca54e
Merge pull request #297 from creative-commoners/pulls/4/vfsstream
MNT Install vfsstream on travis
2021-04-27 12:12:15 +12:00
Steve Boyd
643a3bded3 MNT Install vfsstream on travis 2021-04-23 10:15:48 +12:00
Steve Boyd
821589a018 Merge branch '4.7' into 4 2021-01-28 12:37:14 +13:00
Steve Boyd
0ff05595bb
MNT Use frameworktest 0.3.0 for graphql 4 compatibility (#295) 2021-01-28 12:36:24 +13:00
Steve Boyd
9e637f7e07 Merge branch '4.7' into 4 2021-01-27 16:40:03 +13:00
Garion Herman
870ba6f55d
Merge pull request #294 from creative-commoners/pull/4.7/php8
MNT Update PHP8
2021-01-27 16:10:16 +13:00
Steve Boyd
3e2629a602 MNT Update PHP8 2021-01-27 11:25:31 +13:00
Steve Boyd
da876a829c
Update build status badge 2021-01-21 16:31:53 +13:00
Steve Boyd
d48994d993 Merge branch '4.7' into 4 2021-01-02 19:40:05 +13:00
Andre Kiste
b594a257ca
Merge pull request #293 from creative-commoners/pulls/4.7/travis-shared
MNT Travis shared config
2020-12-21 14:59:00 +13:00
Steve Boyd
7be811a914 MNT Travis shared config 2020-12-15 13:57:29 +13:00
Serge Latyntsev
523372bc15
Merge pull request #292 from creative-commoners/pulls/4.7/fix-deps
MNT installer 4.7 requires recipe-cms 4.7 and login-forms 4.3
2020-11-11 12:21:23 +13:00
Serge Latyntcev
44728e4d9b MNT installer 4.7 requires recipe-cms 4.7 and login-forms 4.3 2020-11-11 12:06:43 +13:00
Serge Latyntsev
495b9442d5
Merge pull request #290 from creative-commoners/pulls/4/php-8-builds
MNT Add PHP 8 builds
2020-10-23 11:21:40 +13:00
Garion Herman
f955099b6e MNT Add quotes to Behat config for Symfony 4 compat 2020-10-16 10:02:39 +13:00
Garion Herman
25332311ea MNT Add $COMPOSER_ARG to dependency installation 2020-10-16 10:02:12 +13:00
Garion Herman
4ea1f7082b MNT Add PHP 8 builds 2020-10-14 14:31:51 +13:00
Serge Latyntsev
0a57853c60
Merge pull request #289 from creative-commoners/pulls/4/use-changelog-template
MNT Tweak changelog template, ensure it is used by Cow
2020-10-13 13:18:18 +13:00
Garion Herman
4ddf1a901e MNT Tweak changelog template, ensure it is used by Cow 2020-10-09 15:28:58 +13:00
Steve Boyd
1b561f8d80
Update .travis.yml 2020-10-08 10:03:28 +13:00
Manuel Thalmann
6035ccd689
FIX Add redirects to public/ for iis (#263)
FIX Add redirects to `public/` for iis
2020-09-22 09:31:34 +12:00
Steve Boyd
65b2a72843 Merge branch '4.6' into 4 2020-09-11 09:59:09 +12:00
Steve Boyd
ae68dc4299
Merge pull request #286 from creative-commoners/changelog-template
DOCS more information in changelog template
2020-09-11 09:56:20 +12:00
Robbie Averill
1ac80f05a8
Merge pull request #288 from open-sausages/pulls/4/ignow-dot-cow-folder-on-builds
BUG Don't include the .cow folders in releases
2020-09-10 09:24:24 -07:00
Maxime Rainville
80d1bdf621 BUG Don't include the .cow folders in releases 2020-09-10 20:23:58 +12:00
brynwhyman
d76bd7d66e DOCS more information in changelog template
I've taken reference from the 4.6.1 change log to use the 'CMS Recipe' table. The other information is taken from the exisitng CWP change log template, see: https://github.com/silverstripe/cwp-recipe-kitchen-sink/blob/2/.changelog.md.twig
2020-09-10 16:50:43 +12:00
Garion Herman
daa0bf08ae
Merge pull request #271 from mandrew/patch-2
Set environment type in example
2020-07-27 10:36:02 +12:00
Michael Andrewartha
be7e4c8730 Set environment type in example
When running a dev/build for the first time, environment should be set to 'dev' or it won't run. 
Setting this in the example gives guidance to someone building a site for the first time (or if it's been ages!)
2020-07-27 10:34:36 +12:00
Steve Boyd
fb77893766
Merge pull request #278 from open-sausages/pulls/4/make-login-forms-core-module
BUG Treat login-forms as a core module
2020-07-02 15:48:31 +12:00
Maxime Rainville
27231bf315 BUG Treat login-forms as a core module 2020-06-30 22:14:55 +12:00
Robbie Averill
074c9dc45c Merge branch '4.6' into 4
# Conflicts:
 #	.travis.yml
2020-06-23 09:52:47 -07:00
Robbie Averill
63830aec7f
Merge pull request #285 from creative-commoners/pulls/4.6/travis
Update travis 4.6
2020-06-23 09:49:30 -07:00
Steve Boyd
5877d0ecce Update travis 2020-06-23 17:16:31 +12:00
Andre Kiste
9f2a17337a
Merge pull request #283 from creative-commoners/pulls/4/add-frameworktest
Require frameworktest
2020-06-16 14:48:25 +12:00
Steve Boyd
ffd0a85bd3 Require frameworktest 2020-06-16 12:42:59 +12:00
Maxime Rainville
d6bcc27fb5
Prep installer 4.6 branch. (#279)
API Bump requirements for recipe-cms to 4.6.x, require frameworktest for asset-admin behat test
2020-05-28 17:11:08 +12:00
Garion Herman
46f687ab5a Merge branch '4.5' into 4 2020-03-03 15:20:24 +13:00
Robbie Averill
3f9e2618c2
Merge pull request #275 from creative-commoners/pulls/4.5/php-7.4-builds
Update Travis config to include PHP 7.4 builds
2020-02-26 16:15:14 +11:00
Garion Herman
6851935652 Add sminnee/phpunit-mock-objects to fix PHP 7.4 compat 2020-02-26 16:45:52 +13:00
Garion Herman
02ca9d772a Update Travis config to include PHP 7.4 builds 2020-02-26 14:58:21 +13:00
Steve Boyd
6bb01369f5
Merge pull request #270 from creative-commoners/pulls/4.5/remove-source-link-from-readme
DOC Update README with valid links to documentation
2020-02-03 17:01:23 +13:00
Steve Boyd
c921509259
Merge pull request #272 from creative-commoners/pulls/4.5/rc-changelog-message
DOC Adjust changelog template for RC releases
2020-01-16 13:29:23 +13:00
Garion Herman
966f7343d5 DOC Adjust changelog template for RC releases 2020-01-15 11:44:26 +13:00
Garion Herman
e5840dfbeb DOC Update README with valid links to documentation 2020-01-06 10:46:35 +13:00
Robbie Averill
03cab91539
Merge pull request #257 from open-sausages/pulls/4/login-forms
NEW Add silverstripe/login-forms
2019-12-10 19:52:31 -08:00
Ingo Schommer
87ae55539e
Merge branch '4' into pulls/4/login-forms 2019-12-11 15:46:06 +13:00
Andre Kiste
8f62bb9488
Merge pull request #267 from creative-commoners/pulls/4/rfc-9344
RFC-9344 Remove branch aliases
2019-12-10 13:38:53 +13:00
Serge Latyntcev
a3bc3d80c5 RFC-9344 Remove branch aliases 2019-12-09 10:58:15 +13:00
Robbie Averill
54265626f1
Merge pull request #266 from creative-commoners/recover/4
Update branch aliases
2019-11-28 16:50:18 -08:00
Serge Latyntcev
3bf4d1f34c Update branch alias, requirements and travis config 2019-11-29 12:00:14 +13:00
Serge Latyntcev
e3230a7371 Remove obsolete branch-alias 2019-11-14 01:24:53 +00:00
Serge Latyntcev
56b9c16880 Merge branch '4.4' into 4 2019-11-13 15:50:30 +13:00
Serge Latyntcev
93f8699b65 Merge branch '4.3' into 4.4 2019-11-13 15:49:40 +13:00
Garion Herman
b171632ccd
Merge pull request #254 from creative-commoners/pulls/4.4/release-changelog-template
Add and configure Cow changelog template
2019-10-22 13:00:41 +13:00
Garion Herman
626d7c9f99
FIX Update changelog template location config 2019-10-22 11:54:04 +13:00
Ingo Schommer
d01cf63018
Merge pull request #260 from open-sausages/pulls/4.3/remove-archive
Remove cow archive metadata
2019-09-24 10:41:54 +12:00
Ingo Schommer
03c2c996c5 Remove cow archive metadata
See https://github.com/silverstripe/silverstripe-framework/issues/9232
2019-09-20 11:35:43 +12:00
Robbie Averill
0ae3823eeb
Merge pull request #259 from nfauchelle/patch-1
Update the default location for tests in a project
2019-08-25 18:38:24 +12:00
Nick
7de2991fa3
Update the default location for tests in a project
Change the path since mysite isn't used anymore, new sites have an app folder instead.
2019-08-25 12:32:26 +12:00
Robbie Averill
70580acb2b
Merge pull request #258 from open-sausages/pulls/4/xenial
Enhancement / Update travis config to use Xenial
2019-07-26 09:40:10 +02:00
Serge Latyntcev
be4ff49c12 Enhancement / Update travis config to use Xenial 2019-07-26 12:56:40 +12:00
Ingo Schommer
c1d94643a4
Set looser composer constraint
As per discussion with Guy on https://github.com/silverstripe/silverstripe-installer/pull/257. Will pull in stable tags via cow once they're available (on recipe release)
2019-07-16 11:23:54 +12:00
Ingo Schommer
9171342ec2 NEW Add silverstripe/login-forms
Using beta tag for now, should move to stable once the module is stable (ideally before 4.5.0)
2019-07-05 16:45:11 +12:00
Garion Herman
e4acec30c8 Shift changelog template into dedicated cow config folder 2019-06-13 12:28:50 +12:00
Robbie Averill
d4af206393
Merge pull request #256 from sminnee/deprecate-pdo
NEW: Change .env.example to default to MySQL native driver
2019-06-13 11:15:18 +12:00
Sam Minnee
a968e7ad47 NEW: Change .env.example to default to MySQL native driver
https://github.com/silverstripe/silverstripe-framework/issues/8598
2019-06-11 16:19:50 +12:00
Ingo Schommer
09a2f6e298
Merge pull request #255 from creative-commoners/pulls/4.5/php71
API Bump minimum PHP version to 7.1
2019-06-07 14:39:36 +12:00
Robbie Averill
002cb6b61d API Bump minimum PHP version to 7.1 2019-05-23 13:59:31 +12:00
Garion Herman
0eede14f45 Add and configure Cow changelog template 2019-05-13 15:01:48 +12:00
Maxime Rainville
43b8000fd6 NEW Disable legacy resolution for new projects (#253) 2019-05-10 09:55:36 +12:00
Ingo Schommer
3e7294ea70
Bump to 4.5.x-dev
This conflicts with an earlier commit (cfba4cb), but after talking to Robbie this new commit is consistent with how we handle other recipes (CWP and core). Both ways are viable, but we've implicitly standardised on this way (set minor release constraints in the main release branch, e.g. constraint to recipe:4.5.x-dev on installer:4.x-dev)
2019-04-30 11:03:06 +12:00
Ingo Schommer
cfba4cbe36
Fixed core dependency to 4.x-dev
Likely caused by repeated unreviewed merges from 4.4 (and 4.3) onto the 4 branch here (e.g. through fa67bc614b).

Note this isn't changing the branch alias, which should still point to 4.5.x-dev here.
2019-04-30 09:21:53 +12:00
Robbie Averill
83f78fc40e Merge branch '4.4' into 4 2019-04-21 10:33:04 +12:00
Robbie Averill
c9a4efe29d Merge branch '4.3' into 4.4 2019-04-21 10:32:21 +12:00
Robbie Averill
c0d9fd4869 Remove obsolete branch alias 2019-04-21 10:30:43 +12:00
Robbie Averill
810f719f86 Revert "NEW Add Roave Security advisories to composer"
This reverts commit a302acfa5a.
2019-02-26 09:19:08 +11:00
Robbie Averill
e8614b59bb
Bump postgres version in Travis builds to match silverstripe/framework@4.4 2019-01-31 11:43:39 +02:00
Serge Latyntcev
9fe50bb42b Merge branch '4.3' into 4 2019-01-28 14:14:23 +13:00
Maxime Rainville
0f02f2364f MINOR Make installer default to using _resources (#242) 2019-01-16 21:34:13 +13:00
Maxime Rainville
f04beea2f3
Merge pull request #246 from Firesphere/patch-1
Add Roave Security advisories to composer
2019-01-08 10:07:45 +13:00
Simon Erkelens
a302acfa5a
NEW Add Roave Security advisories to composer
Add Security Advisories as dev requirement to
- Prevent installation of known breached libraries
- Give devs the option to remove it if they might want to
2019-01-08 09:37:34 +13:00
Robbie Averill
b66e851dda Merge branch '4.3' into 4 2018-11-21 09:12:30 +01:00
Robbie Averill
90f54ccfe9
Merge pull request #240 from JorisDebonnet/patch-4
Correct typo
2018-10-17 21:56:44 +02:00
JorisDebonnet
fa3c87f61e
Correct typo 2018-10-17 18:05:20 +02:00
Robbie Averill
fa67bc614b Bump branch alias and root version in Travis to 4.4.x-dev 2018-10-15 14:54:38 +02:00
Robbie Averill
05fd5a9a96 Bump branch alias and root version in Travis to 4.4.x-dev 2018-10-15 14:44:14 +02:00
Robbie Averill
caf0bc12f7 Merge branch '4.3' into 4 2018-10-15 14:43:00 +02:00
20 changed files with 273 additions and 172 deletions

View File

@ -1,9 +1,7 @@
{ {
"github-slug": "silverstripe/silverstripe-installer", "github-slug": "silverstripe/silverstripe-installer",
"changelog-holder": "silverstripe/framework",
"changelog-path": "docs/en/04_Changelogs/{stability}/{version}.md",
"child-stability-inherit": true, "child-stability-inherit": true,
"dependency-constraint": "exact", "dependency-constraint": "loose",
"vendors": [ "vendors": [
"silverstripe" "silverstripe"
], ],
@ -13,21 +11,5 @@
], ],
"exclude": [ "exclude": [
"silverstripe/recipe-plugin" "silverstripe/recipe-plugin"
],
"archives": [
{
"recipe": "silverstripe/recipe-core",
"files": [
"SilverStripe-framework-v{version}.zip",
"SilverStripe-framework-v{version}.tar.gz"
]
},
{
"recipe": "silverstripe/installer",
"files": [
"SilverStripe-cms-v{version}.zip",
"SilverStripe-cms-v{version}.tar.gz"
]
}
] ]
} }

79
.cow/changelog.md.twig Normal file
View File

@ -0,0 +1,79 @@
# {{ version }}
## Overview
A full list of module versions included in CMS Recipe {{ version }} is provided below. We recommend referencing recipes in your dependencies, rather than individual modules, to simplify version tracking. See [Recipes](/getting_started/).
<details>
<summary>Included module versions</summary>
| Module | Version |
| ------ | ------- |
| silverstripe/admin | x.x.x |
| silverstripe/asset-admin | x.x.x |
| silverstripe/assets | x.x.x |
| silverstripe/campaign-admin | x.x.x |
| silverstripe/cms | x.x.x |
| silverstripe/config | x.x.x |
| silverstripe/errorpage | x.x.x |
| silverstripe/framework | x.x.x |
| silverstripe/graphql | x.x.x |
| silverstripe/login-forms | x.x.x |
| silverstripe/mimevalidator | x.x.x |
| silverstripe/reports | x.x.x |
| silverstripe/siteconfig | x.x.x |
| silverstripe/versioned | x.x.x |
| silverstripe/versioned-admin | x.x.x |
</details>
{% if version.stability == 'rc' %}
## Release Candidate
This version of Silverstripe CMS is a **release candidate** for an upcoming stable version, and should not be applied to production websites. We encourage developers to test this version in development / testing environments and [report any issues they encounter via GitHub](/contributing/issues_and_bugs/).
{% elseif version.stable %}
Upgrading to Recipe {{ version }} is recommended for all sites. This upgrade can be carried out by any development team familiar with Silverstripe.
## Security considerations
This release includes security fixes. Please see the release announcements for more detailed
descriptions of each. We highly encourage upgrading your project to include the latest security patches nonetheless.
We have provided a high-level severity rating of the vulnerabilities below based on the CVSS score, however please note this could vary based on the specifics of each project. You can [read the severity rating definitions in the Silverstripe CMS release process](/contributing/release_process/#severity-rating).
* [CVE-0000-0000 The Issue Title](https://www.silverstripe.org/download/security-releases/CVE-0000-0000) Severity: {# Critical/ High/ Medium/ Low #}
* [CVE-0000-0001 The Issue Title](https://www.silverstripe.org/download/security-releases/CVE-0000-0001) Severity: {# Critical/ High/ Medium/ Low #}
## New features
The [release announcement](#) includes the note worthy features, but be sure to review the change log for full detail.
{# other upgrade notes here #}
## Known issues
{#
* [Known issue](GitHub link)
#}
### Expected test failures
The following PHPUnit test failures are expected and do not represent functional issues:
{#
* List test failures here
#}
```
...
```
...
{% endif %}
{{ logs }}

View File

@ -2,8 +2,11 @@
# https://docs.silverstripe.org/en/4/getting_started/environment_management/#core-environment-variables # https://docs.silverstripe.org/en/4/getting_started/environment_management/#core-environment-variables
# DB credentials # DB credentials
SS_DATABASE_CLASS="MySQLPDODatabase" SS_DATABASE_CLASS="MySQLDatabase"
SS_DATABASE_SERVER="localhost" SS_DATABASE_SERVER="localhost"
SS_DATABASE_USERNAME="<user>" SS_DATABASE_USERNAME="<user>"
SS_DATABASE_PASSWORD="<password>" SS_DATABASE_PASSWORD="<password>"
SS_DATABASE_NAME="<database>" SS_DATABASE_NAME="<database>"
# WARNING: in a live environment, change this to "live" instead of dev
SS_ENVIRONMENT_TYPE="dev"

2
.gitattributes vendored
View File

@ -1,4 +1,6 @@
.github export-ignore
.cow.json export-ignore .cow.json export-ignore
.cow export-ignore
.gitattributes export-ignore .gitattributes export-ignore
.travis.yml export-ignore .travis.yml export-ignore
behat.yml export-ignore behat.yml export-ignore

27
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,27 @@
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
ci:
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
with:
# installer contains a sample behat.yml file, though there are no behat tests to run
endtoend: false
# require the following in ci.yml rather than composer.json require-dev specifically for installer because unlike
# regular modules, require-dev will get installed to projects during `composer create-project silverstripe/installer`
composer_require_extra: silverstripe/recipe-testing:^2 silverstripe/frameworktest:^0.4.2 mikey179/vfsstream:^1.6.10
extra_jobs: |
- endtoend: true
endtoend_suite: admin
endtoend_config: vendor/silverstripe/admin/behat.yml
- endtoend: true
endtoend_suite: asset-admin
endtoend_config: vendor/silverstripe/asset-admin/behat.yml
- endtoend: true
endtoend_suite: cms
endtoend_config: vendor/silverstripe/cms/behat.yml

16
.github/workflows/dispatch-ci.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Dispatch CI
on:
# At 4:00 PM and 5:00 PM
schedule:
- cron: '0 16,17 * * *'
jobs:
dispatch-ci:
name: Dispatch CI
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1

17
.github/workflows/keepalive.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Keepalive
on:
workflow_dispatch:
# The 8th of every month at 4:50pm UTC
schedule:
- cron: '50 16 8 * *'
jobs:
keepalive:
name: Keepalive
# Only run cron on the silverstripe account
if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Keepalive
uses: silverstripe/gha-keepalive@v1

6
.gitignore vendored
View File

@ -2,5 +2,7 @@
/.env /.env
/vendor/ /vendor/
/themes/simple/ /themes/simple/
/resources/ /_resources/
/public/resources/ /public/_resources/
/.graphql-generated/
/public/_graphql/

View File

View File

@ -1,110 +0,0 @@
language: php
dist: trusty
before_install:
- sudo apt-get update
- sudo apt-get install chromium-chromedriver
cache:
directories:
- $HOME/.composer/cache/files
addons:
apt:
packages:
- tidy
env:
global:
- TRAVIS_NODE_VERSION="6"
- COMPOSER_ROOT_VERSION="4.3.x-dev"
- DISPLAY=":99"
- XVFBARGS=":99 -ac -screen 0 1024x768x16"
- SS_BASE_URL="http://localhost:8080/"
- SS_ENVIRONMENT_TYPE="dev"
matrix:
fast_finish: true
include:
# Core php tests
- php: 5.6
env:
- PHPUNIT_TEST=core
- DB=MYSQL
- PDO=1
- php: 7.1
env:
- PHPUNIT_TEST=framework
- DB=MYSQL
- php: 7.3
env:
- PHPUNIT_TEST=core
- DB=PGSQL
# admin php tests
- php: 7.0
env:
- PHPUNIT_TEST=admin
- DB=PGSQL
- php: 7.2
env:
- PHPUNIT_TEST=admin
- DB=MYSQL
- PDO=1
# behat tests
- php: 7.0
env:
- BEHAT_TEST="@framework"
- DB=MYSQL
- php: 7.0
env:
- BEHAT_TEST="@cms"
- DB=MYSQL
- php: 7.0
env:
- BEHAT_TEST="@asset-admin"
- DB=MYSQL
- php: 5.6
env:
- HEALTH_TEST=1
- DB=MYSQL
- PDO=1
before_script:
# Extra $PATH
- export PATH=/usr/lib/chromium-browser/:$PATH
# Init PHP
- phpenv rehash
- phpenv config-rm xdebug.ini || true
- echo 'memory_limit = 2048M' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
# Install composer dependencies
- composer validate
- if [[ $DB == PGSQL ]]; then composer require --no-update silverstripe/postgresql:2.2.x-dev; fi
- if [[ $BEHAT_TEST ]]; then composer require --no-update silverstripe/recipe-testing:^1; fi;
- if [[ $HEALTH_TEST ]]; then composer require --no-update silverstripe/serve:^2; fi;
- if ! [[ $HEALTH_TEST ]]; then composer install --prefer-source --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile; fi;
- if [[ $HEALTH_TEST ]]; then composer install --prefer-dist --no-interaction --no-progress --no-suggest --optimize-autoloader --verbose --profile --no-dev; fi;
# Start behat services
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then mkdir artifacts; fi
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then cp composer.lock artifacts/; fi
- if [[ $BEHAT_TEST ]]; then sh -e /etc/init.d/xvfb start; sleep 3; fi
- if [[ $BEHAT_TEST ]]; then (chromedriver > artifacts/chromedriver.log 2>&1 &); fi
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then (vendor/bin/serve --bootstrap-file vendor/silverstripe/cms/tests/behat/serve-bootstrap.php &> artifacts/serve.log &); sleep 3; fi
script:
- if [[ $PHPUNIT_TEST ]]; then vendor/bin/phpunit --testsuite $PHPUNIT_TEST; fi
- if [[ $BEHAT_TEST ]]; then vendor/bin/behat $BEHAT_TEST; fi
- if [[ $HEALTH_TEST ]]; then curl -vfL http://localhost:8080/dev/build?flush; fi
- if [[ $HEALTH_TEST ]]; then curl -vfL http://localhost:8080/admin; fi
after_failure:
- if [[ $BEHAT_TEST ]] || [[ $HEALTH_TEST ]]; then php ./vendor/silverstripe/framework/tests/behat/travis-upload-artifacts.php --if-env ARTIFACTS_BUCKET,ARTIFACTS_KEY,ARTIFACTS_SECRET --target-path $TRAVIS_REPO_SLUG/$TRAVIS_BUILD_ID/$TRAVIS_JOB_ID --artifacts-base-url https://s3.amazonaws.com/$ARTIFACTS_BUCKET/ --artifacts-path ./artifacts/; fi
notifications:
slack:
on_pull_requests: false
rooms:
secure: pr4kG5tTMqZy1DLejHd1MpPulAE7FtRvTYekWrKIbQF0SkbFz+s3v9fAk2AqCr+SxfV67M3M+sL52/q6TDjeGYJJttwA60gyfH/Qrc/ToCYP3J80Ca/hsk02mya0pF8Kpjg37XP8kNzAllR162mCwYKJgFiXO6Q1eb/aVJwiqmQ=

View File

@ -1,11 +1,15 @@
## Overview ## Overview
Base project folder for a SilverStripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme. [![CI](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-installer/actions/workflows/ci.yml)
[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/)
Base project folder for a Silverstripe ([http://silverstripe.org](http://silverstripe.org)) installation. Required modules are installed via [http://github.com/silverstripe/recipe-cms](http://github.com/silverstripe/recipe-cms). For information on how to change the dependencies in a recipe, please have a look at [https://github.com/silverstripe/recipe-plugin](https://github.com/silverstripe/recipe-plugin). In addition, installer includes [theme/simple](https://github.com/silverstripe-themes/silverstripe-simple) as a default theme.
## Installation ## ## Installation ##
See [installation on different platforms](http://doc.silverstripe.org/framework/en/installation/), `composer create-project silverstripe/installer my-app`
and [installation from source](http://doc.silverstripe.org/framework/en/installation/from-source).
See [Getting Started](https://docs.silverstripe.org/en/4/getting_started/) for more information.
## Bugtracker ## ## Bugtracker ##
@ -15,11 +19,11 @@ Please read our [issue reporting guidelines](https://docs.silverstripe.org/en/4/
## Development and Contribution ## ## Development and Contribution ##
If you would like to make changes to the SilverStripe core codebase, we have an extensive [guide to contributing code](http://doc.silverstripe.org/framework/en/misc/contributing/code). If you would like to make changes to the Silverstripe core codebase, we have an extensive [guide to contributing code](https://docs.silverstripe.org/en/4/contributing/code/).
## Links ## ## Links ##
* [Changelogs](http://doc.silverstripe.org/framework/en/changelogs/) * [Changelogs](https://docs.silverstripe.org/en/4/changelogs/)
* [Bugtracker: Framework](https://github.com/silverstripe/silverstripe-framework/issues) * [Bugtracker: Framework](https://github.com/silverstripe/silverstripe-framework/issues)
* [Bugtracker: CMS](https://github.com/silverstripe/silverstripe-cms/issues) * [Bugtracker: CMS](https://github.com/silverstripe/silverstripe-cms/issues)
* [Bugtracker: Installer](https://github.com/silverstripe/silverstripe-installer/issues) * [Bugtracker: Installer](https://github.com/silverstripe/silverstripe-installer/issues)

26
app/_config/assets.yml Normal file
View File

@ -0,0 +1,26 @@
# SilverStripe 4.4 changes the way files are resolved. `silverstripe-assets` resolves files using a variety of formats
# by default. When starting a brand new project on SilverStripe 4.4 or greater, those extra formats are not needed and
# will slowdown file resolution requests a bit. This config removes those redundant formats.
---
Name: project-assetsflysystem
After: '#assetsflysystem'
---
SilverStripe\Core\Injector\Injector:
# Define public resolution strategy
SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.public:
class: SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy
properties:
ResolutionFileIDHelpers:
- '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
- '%$SilverStripe\Assets\FilenameParsing\NaturalFileIDHelper'
DefaultFileIDHelper: '%$SilverStripe\Assets\FilenameParsing\NaturalFileIDHelper'
VersionedStage: Live
# Define protected resolution strategy
SilverStripe\Assets\FilenameParsing\FileResolutionStrategy.protected:
class: SilverStripe\Assets\FilenameParsing\FileIDHelperResolutionStrategy
properties:
DefaultFileIDHelper: '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
ResolutionFileIDHelpers:
- '%$SilverStripe\Assets\FilenameParsing\HashFileIDHelper'
VersionedStage: Stage

9
app/_config/email.yml Normal file
View File

@ -0,0 +1,9 @@
# See https://docs.silverstripe.org/en/4/developer_guides/email/ for additional information about setting up email
---
Name: project-emailconfig
After:
- '#emailconfig'
---
SilverStripe\Core\Injector\Injector:
Swift_Transport:
class: Swift_SendmailTransport

View File

@ -17,5 +17,5 @@ default:
browser_name: chrome browser_name: chrome
SilverStripe\BehatExtension\Extension: SilverStripe\BehatExtension\Extension:
bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php bootstrap_file: vendor/silverstripe/cms/tests/behat/serve-bootstrap.php
screenshot_path: %paths.base%/artifacts/screenshots screenshot_path: '%paths.base%/artifacts/screenshots'
retry_seconds: 4 # default is 2 retry_seconds: 4 # default is 2

View File

@ -3,26 +3,34 @@
"type": "silverstripe-recipe", "type": "silverstripe-recipe",
"description": "The SilverStripe Framework Installer", "description": "The SilverStripe Framework Installer",
"require": { "require": {
"php": ">=5.6.0", "php": "^7.4 || ^8.0",
"silverstripe/recipe-plugin": "^1.2", "silverstripe/recipe-plugin": "^1.2",
"silverstripe/recipe-cms": "4.3.x-dev", "silverstripe/recipe-cms": "4.x-dev",
"silverstripe-themes/simple": "~3.2.0" "silverstripe-themes/simple": "~3.2.0",
"silverstripe/login-forms": "4.x-dev"
}, },
"require-dev": { "require-dev": {
"phpunit/phpunit": "^5.7" "phpunit/phpunit": "^9.5"
}, },
"extra": { "extra": {
"project-files": [ "project-files": [
"app/_config/*", "app/_config/*",
".env.example" ".env.example",
".graphql-generated/*"
], ],
"public-files": [ "public-files": [
"assets/*", "assets/*",
"favicon.ico" "favicon.ico"
] ],
"resources-dir": "_resources"
}, },
"config": { "config": {
"process-timeout": 600 "process-timeout": 600,
"allow-plugins": {
"composer/installers": true,
"silverstripe/recipe-plugin": true,
"silverstripe/vendor-plugin": true
}
}, },
"prefer-stable": true, "prefer-stable": true,
"minimum-stability": "dev" "minimum-stability": "dev"

View File

@ -2,6 +2,8 @@
<ruleset name="SS3"> <ruleset name="SS3">
<description>Coding standard for SilverStripe 4.x</description> <description>Coding standard for SilverStripe 4.x</description>
<file>app</file>
<!-- Don't sniff third party libraries --> <!-- Don't sniff third party libraries -->
<exclude-pattern>*/vendor/*</exclude-pattern> <exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/thirdparty/*</exclude-pattern> <exclude-pattern>*/thirdparty/*</exclude-pattern>

View File

@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- <!--
PHPUnit configuration for SilverStripe PHPUnit configuration for SilverStripe
Requires PHPUnit 5+ Requires PHPUnit 9+
Usage: Usage:
- "vendor/bin/phpunit": Runs all tests in all folders - "vendor/bin/phpunit": Runs all tests in all folders
@ -18,15 +19,20 @@
It is safe to remove this file for normal website operation. It is safe to remove this file for normal website operation.
--> -->
<phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true"> <phpunit bootstrap="vendor/silverstripe/framework/tests/bootstrap.php" colors="true">
<testsuites>
<testsuite name="Default"> <testsuite name="Default">
<directory>mysite/tests</directory> <directory>app/tests</directory>
<directory>vendor/silverstripe/cms/tests/php</directory> <directory>vendor/silverstripe/cms/tests/php</directory>
<directory>vendor/silverstripe/framework/tests/php</directory> <directory>vendor/silverstripe/framework/tests/php</directory>
</testsuite> </testsuite>
<!-- framework only --> <!-- Framework ORM tests are split up to run in parallel -->
<testsuite name="framework"> <testsuite name="framework-core">
<directory>vendor/silverstripe/framework/tests/php/</directory> <directory>vendor/silverstripe/framework/tests/php</directory>
<exclude>vendor/silverstripe/framework/tests/php/ORM</exclude>
</testsuite>
<testsuite name="framework-orm">
<directory>vendor/silverstripe/framework/tests/php/ORM</directory>
</testsuite> </testsuite>
<!-- other core components --> <!-- other core components -->
@ -41,8 +47,13 @@
<directory>vendor/silverstripe/asset-admin/tests/php/</directory> <directory>vendor/silverstripe/asset-admin/tests/php/</directory>
<directory>vendor/silverstripe/campaign-admin/tests/php/</directory> <directory>vendor/silverstripe/campaign-admin/tests/php/</directory>
<directory>vendor/silverstripe/cms/tests/</directory> <directory>vendor/silverstripe/cms/tests/</directory>
<directory>vendor/silverstripe/config/tests/</directory>
<directory>vendor/silverstripe/errorpage/tests/</directory>
<directory>vendor/silverstripe/graphql/tests/</directory> <directory>vendor/silverstripe/graphql/tests/</directory>
<directory>vendor/silverstripe/login-forms/tests/php/</directory>
<directory>vendor/silverstripe/mimevalidator/tests/</directory>
<directory>vendor/silverstripe/reports/tests/</directory> <directory>vendor/silverstripe/reports/tests/</directory>
<directory>vendor/silverstripe/siteconfig/tests/php/</directory> <directory>vendor/silverstripe/siteconfig/tests/php/</directory>
</testsuite> </testsuite>
</testsuites>
</phpunit> </phpunit>

0
public/_graphql/.gitkeep Normal file
View File

View File

@ -28,7 +28,7 @@ AddHandler default-handler php phtml php3 php4 php5 inc
RewriteCond %{REQUEST_URI} !^[^.]*\.(?i:css|js|ace|arc|arj|asf|au|avi|bmp|bz2|cab|cda|csv|dmg|doc|docx|dotx|flv|gif|gpx|gz|hqx|ico|jpeg|jpg|kml|m4a|m4v|mid|midi|mkv|mov|mp3|mp4|mpa|mpeg|mpg|ogg|ogv|pages|pcx|pdf|png|pps|ppt|pptx|potx|ra|ram|rm|rtf|sit|sitx|tar|tgz|tif|tiff|txt|wav|webm|wma|wmv|xls|xlsx|xltx|zip|zipx)$ RewriteCond %{REQUEST_URI} !^[^.]*\.(?i:css|js|ace|arc|arj|asf|au|avi|bmp|bz2|cab|cda|csv|dmg|doc|docx|dotx|flv|gif|gpx|gz|hqx|ico|jpeg|jpg|kml|m4a|m4v|mid|midi|mkv|mov|mp3|mp4|mpa|mpeg|mpg|ogg|ogv|pages|pcx|pdf|png|pps|ppt|pptx|potx|ra|ram|rm|rtf|sit|sitx|tar|tgz|tif|tiff|txt|wav|webm|wma|wmv|xls|xlsx|xltx|zip|zipx)$
RewriteRule .* - [F] RewriteRule .* - [F]
# Non existant files passed to requesthandler # Non-existent files passed to requesthandler
RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* ../index.php [QSA] RewriteRule .* ../index.php [QSA]

23
web.config Normal file
View File

@ -0,0 +1,23 @@
<!-- Routing configuration for Microsoft IIS web server -->
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="SilverStripe Global URLs">
<match url="^(.*)$" />
<conditions>
<add input="{R:1}" matchType="Pattern" pattern="public(/|$)" negate="true" />
</conditions>
<action type="Rewrite" url="public/{R:1}" appendQueryString="true" />
</rule>
<rule name="SilverStripe Preprocessed URLs" stopProcessing="true">
<match url="^(.*)$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="public/index.php" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>