From 854589a6fac819c6a655df6a1b3d84df608d2d3d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 25 Oct 2016 15:36:33 +0200 Subject: php-fedora-autoloader: rename 1 method to avoid conflicts with symfony --- php-fedora-autoloader.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'php-fedora-autoloader.patch') diff --git a/php-fedora-autoloader.patch b/php-fedora-autoloader.patch index c2406cd..b711daa 100644 --- a/php-fedora-autoloader.patch +++ b/php-fedora-autoloader.patch @@ -19,3 +19,25 @@ index c8e53e4..f71f150 100644 $this->assertArrayHasKey(__DIR__.'/fixtures/Foo', $classmap); $this->assertArrayHasKey(__DIR__.'/fixtures/Foo2', $classmap); } +diff --git a/src/Autoload.php b/src/Autoload.php +index 5d08c84..9f85edd 100644 +--- a/src/Autoload.php ++++ b/src/Autoload.php +@@ -209,7 +209,7 @@ class Autoload + */ + public static function loadClass($class) + { +- if ($file = static::findFile($class)) { ++ if ($file = static::findFileForClass($class)) { + includeFile($file); + } + } +@@ -219,7 +219,7 @@ class Autoload + * + * Checks for a classmap and then loops through PSR-4 mappings. + */ +- public static function findFile($class) ++ public static function findFileForClass($class) + { + $class = ltrim($class, '\\'); + $lower = strtolower($class); -- cgit