mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
removed deprecated loader interfaces
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
@@ -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
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user