[3.0][Config] Remove ResourceInterface::getResource() which was deprecated in 2.8

This commit is contained in:
Matthias Pigulla 2015-09-26 21:19:15 +02:00 committed by Fabien Potencier
parent 8d7b498665
commit 7cef180742
8 changed files with 5 additions and 26 deletions

View File

@ -7,6 +7,7 @@ CHANGELOG
* removed `ReferenceDumper` class
* removed the `ResourceInterface::isFresh()` method
* removed `BCResourceInterfaceChecker` class
* removed `ResourceInterface::getResource()` method
2.8.0
-----

View File

@ -42,7 +42,7 @@ class DirectoryResource implements SelfCheckingResourceInterface, \Serializable
}
/**
* {@inheritdoc}
* @return string The file path to the resource
*/
public function getResource()
{

View File

@ -45,7 +45,7 @@ class FileExistenceResource implements SelfCheckingResourceInterface, \Serializa
}
/**
* {@inheritdoc}
* @return string The file path to the resource
*/
public function getResource()
{

View File

@ -44,7 +44,7 @@ class FileResource implements SelfCheckingResourceInterface, \Serializable
}
/**
* {@inheritdoc}
* @return string|false The canonicalized, absolute path to the resource or false if the resource does not exist.
*/
public function getResource()
{

View File

@ -30,17 +30,4 @@ interface ResourceInterface
* @return string A string representation unique to the underlying Resource
*/
public function __toString();
/**
* Returns the tied resource.
*
* @return mixed The resource
*
* @deprecated since 2.8, to be removed in 3.0. As there are many different kinds of resource,
* a single getResource() method does not make sense at the interface level. You
* can still call getResource() on implementing classes, probably after performing
* a type check. If you know the concrete type of Resource at hand, the return value
* of this method may make sense to you.
*/
public function getResource();
}

View File

@ -31,9 +31,4 @@ class ResourceStub implements SelfCheckingResourceInterface
{
return $this->fresh;
}
public function getResource()
{
return 'stub';
}
}

View File

@ -50,7 +50,7 @@ class EnvParametersResource implements SelfCheckingResourceInterface, \Serializa
}
/**
* {@inheritdoc}
* @return array An array with two keys: 'prefix' for the prefix used and 'variables' containing all the variables watched by this resource
*/
public function getResource()
{

View File

@ -288,10 +288,6 @@ class StaleResource implements SelfCheckingResourceInterface
return false;
}
public function getResource()
{
}
public function __toString()
{
return '';