diff --git a/.gitignore b/.gitignore index 9f11b75..75b2efc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea/ +vendor diff --git a/composer.json b/composer.json index 415cc76..2b81722 100644 --- a/composer.json +++ b/composer.json @@ -12,6 +12,11 @@ "email": "maltehuebner@gmx.org" } ], + "autoload": { + "psr-4": { + "StaticMapLite\\": "src" + } + }, "minimum-stability": "stable", "require": {} } diff --git a/src/staticMapLite.php b/src/staticMapLite.php index e48e347..66e1636 100644 --- a/src/staticMapLite.php +++ b/src/staticMapLite.php @@ -4,7 +4,6 @@ namespace StaticMapLite; class staticMapLite { - protected $maxWidth = 1024; protected $maxHeight = 1024; diff --git a/web/staticmap.php b/web/staticmap.php index 7953f50..2d8146f 100644 --- a/web/staticmap.php +++ b/web/staticmap.php @@ -25,13 +25,9 @@ * */ -error_reporting(0); -ini_set('display_errors', 'off'); +require_once '../vendor/autoload.php'; -Class staticMapLite -{ - -} +use StaticMapLite\staticMapLite; $map = new staticMapLite(); print $map->showMap();