fix includes
[m6w6/pq-gateway] / lib / autoload.php
index cc5e906a728feaf3fa3e9fa836d2e375af63c2c2..e45fd2c81c3f3b711ca69c7cf8630be7a3cef99f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 spl_autoload_register(function($c) {
-       if (substr($c, 0, 10) === "pq\\Gateway" || substr($c, 0, 8) === "pq\\Query") {
+       if (substr($c, 0, 11) === "pq\\Gateway\\" || substr($c, 0, 9) === "pq\\Query\\" || substr($c, 0, 10) === "pq\\Mapper\\") {
                return include __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
        }
 });