Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 07a1790

Browse files
committed
Removed deprecated stuff from the Config component
1 parent 80ee9cb commit 07a1790

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

src/Symfony/Component/Config/ConfigCache.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,6 @@ public function __construct($file, $debug)
3838
$this->debug = (bool) $debug;
3939
}
4040

41-
/**
42-
* Gets the cache file path.
43-
*
44-
* @return string The cache file path
45-
* @deprecated since 2.7, to be removed in 3.0. Use getPath() instead.
46-
*/
47-
public function __toString()
48-
{
49-
@trigger_error('ConfigCache::__toString() is deprecated since version 2.7 and will be removed in 3.0. Use the getPath() method instead.', E_USER_DEPRECATED);
50-
51-
return $this->file;
52-
}
53-
5441
/**
5542
* Gets the cache file path.
5643
*

src/Symfony/Component/Config/Loader/FileLoader.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,7 @@ public function import($resource, $type = null, $ignoreErrors = false, $sourceRe
8383
$loader = $this->resolve($resource, $type);
8484

8585
if ($loader instanceof self && null !== $this->currentDir) {
86-
// we fallback to the current locator to keep BC
87-
// as some some loaders do not call the parent __construct()
88-
// @deprecated should be removed in 3.0
89-
$locator = $loader->getLocator();
90-
if (null === $locator) {
91-
@trigger_error('Not calling the parent constructor in '.get_class($loader).' which extends '.__CLASS__.' is deprecated since version 2.7 and will not be supported anymore in 3.0.', E_USER_DEPRECATED);
92-
$locator = $this->locator;
93-
}
94-
95-
$resource = $locator->locate($resource, $this->currentDir, false);
86+
$resource = $loader->getLocator()->locate($resource, $this->currentDir, false);
9687
}
9788

9889
$resources = is_array($resource) ? $resource : array($resource);

0 commit comments

Comments
 (0)