mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Remove accidental deprecation warnings.
These were erroneously added via a merge-up from 4 to 5.
This commit is contained in:
parent
f0a20ed400
commit
89a0f59ef1
@ -123,10 +123,6 @@ class ClassLoader
|
|||||||
*/
|
*/
|
||||||
public function init($includeTests = false, $forceRegen = false)
|
public function init($includeTests = false, $forceRegen = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->manifests as $manifest) {
|
foreach ($this->manifests as $manifest) {
|
||||||
/** @var ClassManifest $instance */
|
/** @var ClassManifest $instance */
|
||||||
$instance = $manifest['instance'];
|
$instance = $manifest['instance'];
|
||||||
|
@ -11,7 +11,6 @@ use PhpParser\ParserFactory;
|
|||||||
use PhpParser\ErrorHandler\ErrorHandler;
|
use PhpParser\ErrorHandler\ErrorHandler;
|
||||||
use Psr\SimpleCache\CacheInterface;
|
use Psr\SimpleCache\CacheInterface;
|
||||||
use SilverStripe\Core\Cache\CacheFactory;
|
use SilverStripe\Core\Cache\CacheFactory;
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -280,10 +279,6 @@ class ClassManifest
|
|||||||
*/
|
*/
|
||||||
public function init($includeTests = false, $forceRegen = false)
|
public function init($includeTests = false, $forceRegen = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->cache = $this->buildCache($includeTests);
|
$this->cache = $this->buildCache($includeTests);
|
||||||
|
|
||||||
// Check if cache is safe to use
|
// Check if cache is safe to use
|
||||||
@ -546,10 +541,6 @@ class ClassManifest
|
|||||||
*/
|
*/
|
||||||
public function regenerate($includeTests)
|
public function regenerate($includeTests)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
// Reset the manifest so stale info doesn't cause errors.
|
// Reset the manifest so stale info doesn't cause errors.
|
||||||
$this->loadState([]);
|
$this->loadState([]);
|
||||||
$this->roots = [];
|
$this->roots = [];
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
namespace SilverStripe\Core\Manifest;
|
namespace SilverStripe\Core\Manifest;
|
||||||
|
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module manifest holder
|
* Module manifest holder
|
||||||
*/
|
*/
|
||||||
@ -96,10 +94,6 @@ class ModuleLoader
|
|||||||
*/
|
*/
|
||||||
public function init($includeTests = false, $forceRegen = false)
|
public function init($includeTests = false, $forceRegen = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->manifests as $manifest) {
|
foreach ($this->manifests as $manifest) {
|
||||||
$manifest->init($includeTests, $forceRegen);
|
$manifest->init($includeTests, $forceRegen);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,6 @@ use Psr\SimpleCache\CacheInterface;
|
|||||||
use SilverStripe\Core\Cache\CacheFactory;
|
use SilverStripe\Core\Cache\CacheFactory;
|
||||||
use SilverStripe\Core\Config\Configurable;
|
use SilverStripe\Core\Config\Configurable;
|
||||||
use SilverStripe\Core\Injector\Injector;
|
use SilverStripe\Core\Injector\Injector;
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A utility class which builds a manifest of configuration items
|
* A utility class which builds a manifest of configuration items
|
||||||
@ -125,10 +124,6 @@ class ModuleManifest
|
|||||||
*/
|
*/
|
||||||
public function init($includeTests = false, $forceRegen = false)
|
public function init($includeTests = false, $forceRegen = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
// build cache from factory
|
// build cache from factory
|
||||||
if ($this->cacheFactory) {
|
if ($this->cacheFactory) {
|
||||||
$this->cache = $this->cacheFactory->create(
|
$this->cache = $this->cacheFactory->create(
|
||||||
@ -170,10 +165,6 @@ class ModuleManifest
|
|||||||
*/
|
*/
|
||||||
public function regenerate($includeTests = false)
|
public function regenerate($includeTests = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->modules = [];
|
$this->modules = [];
|
||||||
|
|
||||||
$finder = new ManifestFileFinder();
|
$finder = new ManifestFileFinder();
|
||||||
|
@ -4,7 +4,6 @@ namespace SilverStripe\Dev\Constraint;
|
|||||||
|
|
||||||
use PHPUnit\Framework\Constraint\Constraint;
|
use PHPUnit\Framework\Constraint\Constraint;
|
||||||
use PHPUnit\Framework\ExpectationFailedException;
|
use PHPUnit\Framework\ExpectationFailedException;
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
use SilverStripe\Dev\SSListExporter;
|
use SilverStripe\Dev\SSListExporter;
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\SS_List;
|
use SilverStripe\ORM\SS_List;
|
||||||
@ -30,8 +29,6 @@ class SSListContains extends Constraint implements TestOnly
|
|||||||
|
|
||||||
public function __construct(array $matches)
|
public function __construct(array $matches)
|
||||||
{
|
{
|
||||||
Deprecation::notice('5.0.0', 'This class will be removed in CMS 5', Deprecation::SCOPE_CLASS);
|
|
||||||
|
|
||||||
$this->exporter = new SSListExporter();
|
$this->exporter = new SSListExporter();
|
||||||
|
|
||||||
$this->matches = $matches;
|
$this->matches = $matches;
|
||||||
|
@ -4,7 +4,6 @@ namespace SilverStripe\Dev\Constraint;
|
|||||||
|
|
||||||
use PHPUnit\Framework\Constraint\Constraint;
|
use PHPUnit\Framework\Constraint\Constraint;
|
||||||
use PHPUnit\Framework\ExpectationFailedException;
|
use PHPUnit\Framework\ExpectationFailedException;
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
use SilverStripe\Dev\SSListExporter;
|
use SilverStripe\Dev\SSListExporter;
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\SS_List;
|
use SilverStripe\ORM\SS_List;
|
||||||
@ -27,7 +26,6 @@ class SSListContainsOnlyMatchingItems extends Constraint implements TestOnly
|
|||||||
|
|
||||||
public function __construct($match)
|
public function __construct($match)
|
||||||
{
|
{
|
||||||
Deprecation::notice('5.0.0', 'This class will be removed in CMS 5', Deprecation::SCOPE_CLASS);
|
|
||||||
$this->exporter = new SSListExporter();
|
$this->exporter = new SSListExporter();
|
||||||
|
|
||||||
$this->constraint = new ViewableDataContains($match);
|
$this->constraint = new ViewableDataContains($match);
|
||||||
|
@ -83,8 +83,6 @@ abstract class FunctionalTest extends SapphireTest implements TestOnly
|
|||||||
|
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
Deprecation::notice('5.0.0', 'This class will be removed in CMS 5', Deprecation::SCOPE_CLASS);
|
|
||||||
|
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
// Skip calling FunctionalTest directly.
|
// Skip calling FunctionalTest directly.
|
||||||
|
@ -264,8 +264,6 @@ abstract class SapphireTest extends TestCase implements TestOnly
|
|||||||
*/
|
*/
|
||||||
protected function setUp(): void
|
protected function setUp(): void
|
||||||
{
|
{
|
||||||
Deprecation::notice('5.0.0', 'This class will be removed in CMS 5', Deprecation::SCOPE_CLASS);
|
|
||||||
|
|
||||||
if (!defined('FRAMEWORK_PATH')) {
|
if (!defined('FRAMEWORK_PATH')) {
|
||||||
trigger_error(
|
trigger_error(
|
||||||
'Missing constants, did you remember to include the test bootstrap in your phpunit.xml file?',
|
'Missing constants, did you remember to include the test bootstrap in your phpunit.xml file?',
|
||||||
|
@ -6,7 +6,6 @@ use Psr\SimpleCache\CacheInterface;
|
|||||||
use SilverStripe\Core\Cache\CacheFactory;
|
use SilverStripe\Core\Cache\CacheFactory;
|
||||||
use SilverStripe\Core\Manifest\ManifestFileFinder;
|
use SilverStripe\Core\Manifest\ManifestFileFinder;
|
||||||
use SilverStripe\Core\Manifest\ModuleLoader;
|
use SilverStripe\Core\Manifest\ModuleLoader;
|
||||||
use SilverStripe\Dev\Deprecation;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class which builds a manifest of all themes (which is really just a directory called "templates")
|
* A class which builds a manifest of all themes (which is really just a directory called "templates")
|
||||||
@ -77,10 +76,6 @@ class ThemeManifest implements ThemeList
|
|||||||
*/
|
*/
|
||||||
public function init($includeTests = false, $forceRegen = false)
|
public function init($includeTests = false, $forceRegen = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
// build cache from factory
|
// build cache from factory
|
||||||
if ($this->cacheFactory) {
|
if ($this->cacheFactory) {
|
||||||
$this->cache = $this->cacheFactory->create(
|
$this->cache = $this->cacheFactory->create(
|
||||||
@ -137,10 +132,6 @@ class ThemeManifest implements ThemeList
|
|||||||
*/
|
*/
|
||||||
public function regenerate($includeTests = false)
|
public function regenerate($includeTests = false)
|
||||||
{
|
{
|
||||||
if (!empty($ignoredCIConfigs)) {
|
|
||||||
Deprecation::notice('5.0.0', 'The $ignoredCIConfigs parameter will be removed in CMS 5');
|
|
||||||
}
|
|
||||||
|
|
||||||
$finder = new ManifestFileFinder();
|
$finder = new ManifestFileFinder();
|
||||||
$finder->setOptions([
|
$finder->setOptions([
|
||||||
'include_themes' => false,
|
'include_themes' => false,
|
||||||
|
Loading…
Reference in New Issue
Block a user