replaced require with class_exists

This commit is contained in:
Fabien Potencier
2017-06-05 17:04:19 -07:00
parent 84631789a2
commit e92a13aae9
13 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Cache;
require __DIR__.'/../../lib/Twig/CacheInterface.php';
class_exists('Twig_CacheInterface');
if (\false) {
interface CacheInterface extends \Twig_CacheInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Extension;
require __DIR__.'/../../lib/Twig/ExtensionInterface.php';
class_exists('Twig_ExtensionInterface');
if (\false) {
interface ExtensionInterface extends \Twig_ExtensionInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Extension;
require __DIR__.'/../../lib/Twig/Extension/GlobalsInterface.php';
class_exists('Twig_Extension_GlobalsInterface');
if (\false) {
interface GlobalsInterface extends \Twig_Extension_ExtensionInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Extension;
require __DIR__.'/../../lib/Twig/Extension/InitRuntimeInterface.php';
class_exists('Twig_Extension_InitRuntimeInterface');
if (\false) {
interface InitRuntimeInterface extends \Twig_Extension_InitRuntimeInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Loader;
require __DIR__.'/../../lib/Twig/ExistsLoaderInterface.php';
class_exists('Twig_ExistsLoaderInterface');
if (\false) {
interface ExistsLoaderInterface extends \Twig_ExistsLoaderInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Loader;
require __DIR__.'/../../lib/Twig/LoaderInterface.php';
class_exists('Twig_LoaderInterface');
if (\false) {
interface LoaderInterface extends \Twig_LoaderInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Loader;
require __DIR__.'/../../lib/Twig/SourceContextLoaderInterface.php';
class_exists('Twig_SourceContextLoaderInterface');
if (\false) {
interface SourceContextLoaderInterface extends \Twig_SourceContextLoaderInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Node;
require __DIR__.'/../../lib/Twig/NodeCaptureInterface.php';
class_exists('Twig_NodeCaptureInterface');
if (\false) {
interface NodeCaptureInterface extends \Twig_NodeCaptureInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Node;
require __DIR__.'/../../lib/Twig/NodeOutputInterface.php';
class_exists('Twig_NodeOutputInterface');
if (\false) {
interface NodeOutputInterface extends \Twig_NodeOutputInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\NodeVisitor;
require __DIR__.'/../../lib/Twig/NodeVisitorInterface.php';
class_exists('Twig_NodeVisitorInterface');
if (\false) {
interface NodeVisitorInterface extends \Twig_NodeVisitorInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\RuntimeLoader;
require __DIR__.'/../../lib/Twig/RuntimeLoaderInterface.php';
class_exists('Twig_RuntimeLoaderInterface');
if (\false) {
interface RuntimeLoaderInterface extends \Twig_RuntimeLoaderInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\Sandbox;
require __DIR__.'/../../lib/Twig/Sandbox/SecurityPolicyInterface.php';
class_exists('Twig_Sandbox_SecurityPolicyInterface');
if (\false) {
interface SecurityPolicyInterface extends \Twig_Sandbox_SecurityPolicyInterface
+1 -1
View File
@@ -2,7 +2,7 @@
namespace Twig\TokenParser;
require __DIR__.'/../../lib/Twig/TokenParserInterface.php';
class_exists('Twig_TokenParserInterface');
if (\false) {
interface TokenParserInterface extends \Twig_TokenParserInterface