Issue #3441386 by quietone: Remove deprecated code in Drupal\Component\PhpStorage
parent
aa25d8ff68
commit
1732b92ceb
|
@ -65,14 +65,6 @@ class FileReadOnlyStorage implements PhpStorageInterface {
|
|||
return $this->directory . '/' . $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function writeable() {
|
||||
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413', E_USER_DEPRECATED);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
@ -144,14 +144,6 @@ class FileStorage implements PhpStorageInterface {
|
|||
return $this->directory . '/' . $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function writeable() {
|
||||
@trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413', E_USER_DEPRECATED);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
|
|
|
@ -51,19 +51,6 @@ interface PhpStorageInterface {
|
|||
*/
|
||||
public function save($name, $code);
|
||||
|
||||
/**
|
||||
* Whether this is a writable storage.
|
||||
*
|
||||
* @return bool
|
||||
* TRUE if writable, otherwise FALSE.
|
||||
*
|
||||
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. There is no
|
||||
* replacement.
|
||||
*
|
||||
* @see https://www.drupal.org/node/3155413
|
||||
*/
|
||||
public function writeable();
|
||||
|
||||
/**
|
||||
* Deletes PHP code from storage.
|
||||
*
|
||||
|
|
|
@ -82,16 +82,6 @@ class FileStorageReadOnlyTest extends PhpStorageTestBase {
|
|||
unset($GLOBALS[$random]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::writeable
|
||||
* @group legacy
|
||||
*/
|
||||
public function testWritable() {
|
||||
$this->expectDeprecation('Drupal\Component\PhpStorage\FileReadOnlyStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
|
||||
$php_read = new FileReadOnlyStorage($this->readonlyStorage);
|
||||
$this->assertFalse($php_read->writeable());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::deleteAll
|
||||
*/
|
||||
|
|
|
@ -51,16 +51,6 @@ class FileStorageTest extends PhpStorageTestBase {
|
|||
$this->assertCRUD($php);
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::writeable
|
||||
* @group legacy
|
||||
*/
|
||||
public function testWritable() {
|
||||
$this->expectDeprecation('Drupal\Component\PhpStorage\FileStorage::writeable() is deprecated in drupal:10.1.0 and will be removed from drupal:11.0.0. There is no replacement. See https://www.drupal.org/node/3155413');
|
||||
$php = new FileStorage($this->standardSettings);
|
||||
$this->assertTrue($php->writeable());
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers ::deleteAll
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue