Skip to content

Commit 25af50d

Browse files
committed
Extract core and put as dependency
1 parent ccb2f7a commit 25af50d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

vendor_alt/autoload.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
spl_autoload_register(function($class) {
3+
$prefix = 'Sounoob\\pagseguro\\';
4+
5+
if ( ! substr($class, 0, strlen($prefix) -1) === $prefix) {
6+
return;
7+
}
8+
9+
$class = substr($class, strlen($prefix));
10+
$location = __DIR__ . '/../source/' . str_replace('\\', '/', $class) . '.php';
11+
12+
if (is_file($location)) {
13+
require_once($location);
14+
}
15+
});

0 commit comments

Comments
 (0)