Skip to content

Commit e50a675

Browse files
committed
move "corehost.php" file to root directory as "host.php"
1 parent 2a0bd01 commit e50a675

File tree

2 files changed

+27
-24
lines changed

2 files changed

+27
-24
lines changed

host.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
/**
4+
* @author Mohammed Moussaoui
5+
* @license MIT license. For more license information, see the LICENSE file in the root directory.
6+
* @link https://github.com/DevNet-Framework
7+
*/
8+
9+
use DevNet\System\Runtime\ClassLoader;
10+
11+
require_once __DIR__ . '/lib/Runtime/ClassLoader.php';
12+
13+
$loader = new ClassLoader(dirname(__DIR__));
14+
15+
$loader->mapNamespace('DevNet\\System', 'system/lib/');
16+
$loader->mapNamespace('DevNet\\Core', 'core/lib/');
17+
$loader->mapNamespace('DevNet\\Common', 'common/lib/');
18+
$loader->mapNamespace('DevNet\\Http', 'http/lib/');
19+
$loader->mapNamespace('DevNet\\Security', 'security/lib/');
20+
$loader->mapNamespace('DevNet\\ORM', 'orm/lib/');
21+
$loader->mapNamespace('DevNet\\ORM\\MySql', 'orm/lib/Providers/MySql/');
22+
$loader->mapNamespace('DevNet\\ORM\\PgSql', 'orm/lib/Providers/PgSql/');
23+
$loader->mapNamespace('DevNet\\ORM\\Sqlite', 'orm/lib/Providers/Sqlite/');
24+
$loader->include(__DIR__ . '/global.php');
25+
26+
$loader->register();
27+

host/corehost.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)