From 89abd5d2db037a9e358935aa9af6316aff2efa88 Mon Sep 17 00:00:00 2001 From: Alexashka Date: Tue, 6 Oct 2015 12:58:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BA=D1=80=D0=B0=D1=81=D0=BE=D1=82=D1=83=20?= =?UTF-8?q?=D0=BD=D0=B0=D0=B2=D0=B5=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :) --- autoload.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/autoload.php b/autoload.php index 5cd9929..52b299f 100644 --- a/autoload.php +++ b/autoload.php @@ -7,13 +7,14 @@ function __dm_autoload_locator( $name ) { $map = array ( - 'Yandex\\Locator\\Api' => 'source/Yandex/Locator/Api.php', - 'Yandex\\Locator\\Exception' => 'source/Yandex/Locator/Exception.php', - 'Yandex\\Locator\\Exception\\CurlError' => 'source/Yandex/Locator/Exception/CurlError.php', - 'Yandex\\Locator\\Exception\\ServerError' => 'source/Yandex/Locator/Exception/ServerError.php', - 'Yandex\\Locator\\Response' => 'source/Yandex/Locator/Response.php', - 'Yandex\\Locator\\Transport' => 'source/Yandex/Locator/Transport.php', -); + 'Yandex\\Locator\\Api' => 'source/Yandex/Locator/Api.php', + 'Yandex\\Locator\\Response' => 'source/Yandex/Locator/Response.php', + 'Yandex\\Locator\\Transport' => 'source/Yandex/Locator/Transport.php', + 'Yandex\\Locator\\Exception' => 'source/Yandex/Locator/Exception.php', + 'Yandex\\Locator\\Exception\\CurlError' => 'source/Yandex/Locator/Exception/CurlError.php', + 'Yandex\\Locator\\Exception\\ServerError' => 'source/Yandex/Locator/Exception/ServerError.php', + ); + if ( isset( $map[ $name ] ) ) { require $map[ $name ];