mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Added warning about Director::set_dev_servers() (from r108049)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112714 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
aa4503845f
commit
cc15a7935e
@ -765,6 +765,11 @@ class Director {
|
|||||||
/**
|
/**
|
||||||
* Specify HTTP_HOST values that are development environments.
|
* Specify HTTP_HOST values that are development environments.
|
||||||
* For information about environment types, see {@link Director::set_environment_type()}.
|
* For information about environment types, see {@link Director::set_environment_type()}.
|
||||||
|
*
|
||||||
|
* CAUTION: Domain information can easily be spoofed in HTTP requests,
|
||||||
|
* we recommend to set this mode via {@link Director::set_environment_type()}
|
||||||
|
* or an _ss_environment.php instead.
|
||||||
|
*
|
||||||
* @param $servers array An array of HTTP_HOST values that should be treated as development environments.
|
* @param $servers array An array of HTTP_HOST values that should be treated as development environments.
|
||||||
*/
|
*/
|
||||||
static function set_dev_servers($servers) {
|
static function set_dev_servers($servers) {
|
||||||
@ -774,6 +779,11 @@ class Director {
|
|||||||
/**
|
/**
|
||||||
* Specify HTTP_HOST values that are test environments.
|
* Specify HTTP_HOST values that are test environments.
|
||||||
* For information about environment types, see {@link Director::set_environment_type()}.
|
* For information about environment types, see {@link Director::set_environment_type()}.
|
||||||
|
*
|
||||||
|
* CAUTION: Domain information can easily be spoofed in HTTP requests,
|
||||||
|
* we recommend to set this mode via {@link Director::set_environment_type()}
|
||||||
|
* or an _ss_environment.php instead.
|
||||||
|
*
|
||||||
* @param $servers array An array of HTTP_HOST values that should be treated as test environments.
|
* @param $servers array An array of HTTP_HOST values that should be treated as test environments.
|
||||||
*/
|
*/
|
||||||
static function set_test_servers($servers) {
|
static function set_test_servers($servers) {
|
||||||
|
Loading…
Reference in New Issue
Block a user