mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
API Update deprecations
This commit is contained in:
parent
0e4867f736
commit
94ff5b621c
@ -275,64 +275,63 @@ class EnvironmentChecker extends RequestHandler
|
|||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated 2.0.0 Use config API instead
|
||||||
* @param string $from
|
* @param string $from
|
||||||
*/
|
*/
|
||||||
public static function set_from_email_address($from)
|
public static function set_from_email_address($from)
|
||||||
{
|
{
|
||||||
Deprecation::notice('2.0', 'Use config API instead');
|
Deprecation::notice('2.0.0', 'Use config API instead');
|
||||||
static::config()->set('from_email_address', $from);
|
static::config()->set('from_email_address', $from);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated 2.0.0 Use config API instead
|
||||||
* @return null|string
|
* @return null|string
|
||||||
*/
|
*/
|
||||||
public static function get_from_email_address()
|
public static function get_from_email_address()
|
||||||
{
|
{
|
||||||
Deprecation::notice('2.0', 'Use config API instead');
|
Deprecation::notice('2.0.0', 'Use config API instead');
|
||||||
return static::config()->get('from_email_address');
|
return static::config()->get('from_email_address');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated 2.0.0 Use config API instead
|
||||||
* @param string $to
|
* @param string $to
|
||||||
*/
|
*/
|
||||||
public static function set_to_email_address($to)
|
public static function set_to_email_address($to)
|
||||||
{
|
{
|
||||||
Deprecation::notice('2.0', 'Use config API instead');
|
Deprecation::notice('2.0.0', 'Use config API instead');
|
||||||
static::config()->set('to_email_address', $to);
|
static::config()->set('to_email_address', $to);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated 2.0.0 Use config API instead
|
||||||
* @return null|string
|
* @return null|string
|
||||||
*/
|
*/
|
||||||
public static function get_to_email_address()
|
public static function get_to_email_address()
|
||||||
{
|
{
|
||||||
Deprecation::notice('2.0', 'Use config API instead');
|
Deprecation::notice('2.0.0', 'Use config API instead');
|
||||||
return static::config()->get('to_email_address');
|
return static::config()->get('to_email_address');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated 2.0.0 Use config API instead
|
||||||
* @param bool $results
|
* @param bool $results
|
||||||
*/
|
*/
|
||||||
public static function set_email_results($results)
|
public static function set_email_results($results)
|
||||||
{
|
{
|
||||||
Deprecation::notice('2.0', 'Use config API instead');
|
Deprecation::notice('2.0.0', 'Use config API instead');
|
||||||
static::config()->set('email_results', $results);
|
static::config()->set('email_results', $results);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated
|
* @deprecated 2.0.0 Use config API instead
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function get_email_results()
|
public static function get_email_results()
|
||||||
{
|
{
|
||||||
Deprecation::notice('2.0', 'Use config API instead');
|
Deprecation::notice('2.0.0', 'Use config API instead');
|
||||||
return static::config()->get('email_results');
|
return static::config()->get('email_results');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user