removed deprecated loader interfaces

This commit is contained in:
Fabien Potencier
2019-04-23 17:17:21 +02:00
parent 8613aad80c
commit 984448bd5e
5 changed files with 3 additions and 43 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ use Twig\Source;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
final class ArrayLoader implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface
final class ArrayLoader implements LoaderInterface
{
private $templates = [];
+1 -1
View File
@@ -18,7 +18,7 @@ use Twig\Error\LoaderError;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
final class ChainLoader implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface
final class ChainLoader implements LoaderInterface
{
private $hasSourceCache = [];
private $loaders = [];
-21
View File
@@ -1,21 +0,0 @@
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Loader;
/**
* Empty interface for Twig 1.x compatibility.
*
* @deprecated since Twig 2.7, to be removed in 3.0
*/
interface ExistsLoaderInterface extends LoaderInterface
{
}
+1 -1
View File
@@ -19,7 +19,7 @@ use Twig\Source;
*
* @author Fabien Potencier <fabien@symfony.com>
*/
class FilesystemLoader implements LoaderInterface, ExistsLoaderInterface, SourceContextLoaderInterface
class FilesystemLoader implements LoaderInterface
{
/** Identifier of the main namespace. */
const MAIN_NAMESPACE = '__main__';
@@ -1,19 +0,0 @@
<?php
/*
* This file is part of Twig.
*
* (c) Fabien Potencier
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Twig\Loader;
/**
* Empty interface for Twig 1.x compatibility.
*/
interface SourceContextLoaderInterface extends LoaderInterface
{
}