-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathautoload.php
43 lines (40 loc) · 1.76 KB
/
autoload.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php declare(strict_types=1);
/*
* This file is part of Aplus Framework.
*
* (c) Natan Felles <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
require __DIR__ . '/../autoload/src/Autoloader.php';
use Framework\Autoload\Autoloader;
$aplusDir = dirname(__DIR__) . \DIRECTORY_SEPARATOR;
return (new Autoloader())->setClasses([
'Aplus' => __DIR__ . '/src/Aplus.php',
])->setNamespaces([
'Framework\Autoload' => $aplusDir . 'autoload/src',
'Framework\Cache' => $aplusDir . 'cache/src',
'Framework\CLI' => $aplusDir . 'cli/src',
'Framework\CLI\Commands' => $aplusDir . 'dev-commands/src',
'Framework\Config' => $aplusDir . 'config/src',
'Framework\Crypto' => $aplusDir . 'crypto/src',
'Framework\Database' => $aplusDir . 'database/src',
'Framework\Database\Extra' => $aplusDir . 'database-extra/src',
'Framework\Date' => $aplusDir . 'date/src',
'Framework\Debug' => $aplusDir . 'debug/src',
'Framework\Email' => $aplusDir . 'email/src',
'Framework\Events' => $aplusDir . 'events/src',
'Framework\Factories' => $aplusDir . 'factories/src',
'Framework\Helpers' => $aplusDir . 'helpers/src',
'Framework\HTTP' => $aplusDir . 'http/src',
'Framework\HTTP\Client' => $aplusDir . 'http-client/src',
'Framework\Image' => $aplusDir . 'image/src',
'Framework\Language' => $aplusDir . 'language/src',
'Framework\Log' => $aplusDir . 'log/src',
'Framework\MVC' => $aplusDir . 'mvc/src',
'Framework\Pagination' => $aplusDir . 'pagination/src',
'Framework\Routing' => $aplusDir . 'routing/src',
'Framework\Session' => $aplusDir . 'session/src',
'Framework\Validation' => $aplusDir . 'validation/src',
]);