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

Skip to content

Commit 2c174e4

Browse files
committed
Use class_exists instead of require
1 parent 1af645d commit 2c174e4

File tree

156 files changed

+156
-156
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+156
-156
lines changed

src/Cache/FilesystemCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Cache;
44

5-
require __DIR__.'/../../lib/Twig/Cache/Filesystem.php';
5+
class_exists('Twig_Cache_Filesystem');
66

77
if (\false) {
88
class FilesystemCache extends \Twig_Cache_Filesystem

src/Cache/NullCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Cache;
44

5-
require __DIR__.'/../../lib/Twig/Cache/Null.php';
5+
class_exists('Twig_Cache_Null');
66

77
if (\false) {
88
class NullCache extends \Twig_Cache_Null

src/Compiler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig;
44

5-
require __DIR__.'/../lib/Twig/Compiler.php';
5+
class_exists('Twig_Compiler');
66

77
if (\false) {
88
class Compiler extends \Twig_Compiler

src/Environment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig;
44

5-
require __DIR__.'/../lib/Twig/Environment.php';
5+
class_exists('Twig_Environment');
66

77
if (\false) {
88
class Environment extends \Twig_Environment

src/Error/Error.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Error;
44

5-
require __DIR__.'/../../lib/Twig/Error.php';
5+
class_exists('Twig_Error');
66

77
if (\false) {
88
class Error extends \Twig_Error

src/Error/LoaderError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Error;
44

5-
require __DIR__.'/../../lib/Twig/Error/Loader.php';
5+
class_exists('Twig_Error_Loader');
66

77
if (\false) {
88
class LoaderError extends \Twig_Error_Loader

src/Error/RuntimeError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Error;
44

5-
require __DIR__.'/../../lib/Twig/Error/Runtime.php';
5+
class_exists('Twig_Error_Runtime');
66

77
if (\false) {
88
class RuntimeError extends \Twig_Error_Runtime

src/Error/SyntaxError.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Error;
44

5-
require __DIR__.'/../../lib/Twig/Error/Syntax.php';
5+
class_exists('Twig_Error_Syntax');
66

77
if (\false) {
88
class SyntaxError extends \Twig_Error_Syntax

src/ExpressionParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig;
44

5-
require __DIR__.'/../lib/Twig/ExpressionParser.php';
5+
class_exists('Twig_ExpressionParser');
66

77
if (\false) {
88
class ExpressionParser extends \Twig_ExpressionParser

src/Extension/AbstractExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace Twig\Extension;
44

5-
require __DIR__.'/../../lib/Twig/Extension.php';
5+
class_exists('Twig_Extension');
66

77
if (\false) {
88
class AbstractExtension extends \Twig_Extension

0 commit comments

Comments
 (0)