Skip to content

Commit

Permalink
Merge pull request #11 from eyeem/integration
Browse files Browse the repository at this point in the history
Integration
  • Loading branch information
FrancisVarga committed Dec 16, 2013
2 parents b0fe949 + a4ce6d4 commit 7496bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
4 changes: 1 addition & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
"ext-curl": "*"
},
"autoload": {
"classmap": {
"Eyeem": "lib/"
}
"classmap": ["lib/"]
}
}
18 changes: 1 addition & 17 deletions lib/Eyeem.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7496bc7

Please sign in to comment.