From 58706d63496edc5fe4fcf3458a4e56d030632ea8 Mon Sep 17 00:00:00 2001 From: FrancisVarga Date: Mon, 16 Dec 2013 17:34:04 +0100 Subject: [PATCH 1/2] remove autoloading composer will take care --- lib/Eyeem.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/lib/Eyeem.php b/lib/Eyeem.php index 7c0072c..70f69e9 100644 --- a/lib/Eyeem.php +++ b/lib/Eyeem.php @@ -18,23 +18,7 @@ class Eyeem protected $_ressources = array( 'user', 'album', 'photo', 'comment', 'app' ); - - public static function autoload() - { - spl_autoload_register(array('self', 'loader')); - } - - public static function loader($className) - { - if (strpos($className, 'Eyeem') === 0) { - $filename = __DIR__ . '/' . str_replace('_', '/', $className) . '.php'; - if (file_exists($filename)) { - require_once $filename; - return true; - } - } - } - + public function getApiUrl($endpoint) { $url = $this->baseUrl . $endpoint; From a4ce6d4402a35926bf4b2d2cc5e621bae8ddb359 Mon Sep 17 00:00:00 2001 From: FrancisVarga Date: Mon, 16 Dec 2013 17:37:12 +0100 Subject: [PATCH 2/2] fixing wrong composer description --- composer.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 81d3d5e..8fa16c8 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,6 @@ "ext-curl": "*" }, "autoload": { - "classmap": { - "Eyeem": "lib/" - } + "classmap": ["lib/"] } } \ No newline at end of file