diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-10-14 15:43:45 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-10-14 15:43:45 +0200 |
commit | 58890f0efb46f634ad62547ae9cc5d35bbd95659 (patch) | |
tree | 90a4a6c5c523f6583c3b3339a3f19623827a14f1 /php-jsonlint-bin-without-composer-autoloader.patch | |
parent | 7f815979280e0c5109351e66055e390b6666edd3 (diff) |
php-jsonlint: add an autoloader
Diffstat (limited to 'php-jsonlint-bin-without-composer-autoloader.patch')
-rw-r--r-- | php-jsonlint-bin-without-composer-autoloader.patch | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/php-jsonlint-bin-without-composer-autoloader.patch b/php-jsonlint-bin-without-composer-autoloader.patch index fdad739..d17357d 100644 --- a/php-jsonlint-bin-without-composer-autoloader.patch +++ b/php-jsonlint-bin-without-composer-autoloader.patch @@ -2,13 +2,7 @@ diff --git a/bin/jsonlint b/bin/jsonlint index 1b9272a..c15cfa6 100755 --- a/bin/jsonlint +++ b/bin/jsonlint -@@ -1,4 +1,4 @@ --#!/usr/bin/env php -+#!/usr/bin/php - <?php - - /* -@@ -10,20 +10,10 @@ +@@ -10,20 +10,7 @@ * file that was distributed with this source code. */ @@ -26,10 +20,7 @@ index 1b9272a..c15cfa6 100755 - fwrite(STDERR, $msg); - exit(1); -} -+spl_autoload_register(function ($class) { -+ $src = str_replace('\\', '/', $class).'.php'; -+ @include_once $src; -+}); ++require_once '/usr/share/php/Seld/JsonLint/autoload.php'; use Seld\JsonLint\JsonParser; |