mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #150 from simonwelsh/patch-3
API CHANGE: Deprecate Director::set_dev_servers() and Director::set_test_servers(). Use _ss_environment.php for environment configuration.
This commit is contained in:
commit
c10ebe04da
@ -773,9 +773,11 @@ class Director {
|
|||||||
* we recommend to set this mode via {@link Director::set_environment_type()}
|
* we recommend to set this mode via {@link Director::set_environment_type()}
|
||||||
* or an _ss_environment.php instead.
|
* or an _ss_environment.php instead.
|
||||||
*
|
*
|
||||||
|
* @deprecated 3.0 Use 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) {
|
||||||
|
Deprecation::notice('3.0', 'Use Director::set_environment_type() or an _ss_environment.php instead.');
|
||||||
Director::$dev_servers = $servers;
|
Director::$dev_servers = $servers;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -787,9 +789,11 @@ class Director {
|
|||||||
* we recommend to set this mode via {@link Director::set_environment_type()}
|
* we recommend to set this mode via {@link Director::set_environment_type()}
|
||||||
* or an _ss_environment.php instead.
|
* or an _ss_environment.php instead.
|
||||||
*
|
*
|
||||||
|
* @deprecated 3.0 Use 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) {
|
||||||
|
Deprecation::notice('3.0', 'Use Director::set_environment_type() or an _ss_environment.php instead.');
|
||||||
Director::$test_servers = $servers;
|
Director::$test_servers = $servers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user