From 193028c23d779577a18a6075bd9cb5d66da03317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Hu=CC=88bner?= Date: Fri, 26 May 2017 13:17:40 +0200 Subject: [PATCH] Add psr-4 stuff. --- .gitignore | 1 + composer.json | 5 +++++ src/staticMapLite.php | 1 - web/staticmap.php | 8 ++------ 4 files changed, 8 insertions(+), 7 deletions(-) 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();