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 ];