-
Notifications
You must be signed in to change notification settings - Fork 5
/
framework.php
executable file
·86 lines (80 loc) · 2.47 KB
/
framework.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
/**
*---------------------------------------------------------------
* Framework initialisation
*---------------------------------------------------------------
*
* This is the framework initialisation. Thats the point where
* all important parts come together and build something
* aweomse together.
*
* @package ClanCatsFramework
* @author Mario Döring <mario@clancats.com>
* @version 2.0
* @copyright 2010 - 2015 ClanCats GmbH
*
* ###
*
*---------------------------------------------------------------
* Application root
*---------------------------------------------------------------
*
* The application root or CCROOT defines the absoulte path to
* the framework.
*/
define( 'CCROOT', __DIR__.'/' );
/*
*---------------------------------------------------------------
* file extension
*---------------------------------------------------------------
*
* This defines the global used file extention of the php files.
*/
define( 'EXT', '.php' );
/*
*---------------------------------------------------------------
* get the boot paths
*---------------------------------------------------------------
*
* You can modify that file, its yours. Its especially useful
* if you have multiple installations on one server and want
* to use just one core or one orbit for them all.
*/
$paths = require CCROOT.'boot/paths'.EXT;
/*
*---------------------------------------------------------------
* the direcotries
*---------------------------------------------------------------
*
* Here are the module directories defined.
* @ToDo: move them to the classes that use that direcotries.
* that way the you could subclass a class and define
* a custom direcotry.
*/
$directories = array(
'controller' => 'controllers/',
'language' => 'language/',
'class' => 'classes/',
'console' => 'console/',
'config' => 'config/',
'view' => 'views/',
'test' => 'tests/',
);
/*
*---------------------------------------------------------------
* wake CCF
*---------------------------------------------------------------
*
* Lets require the ClanCatsFramework resources
*/
require $paths['core'].'wake'.EXT;
/*
*---------------------------------------------------------------
* wake the application
*---------------------------------------------------------------
*
* Lets wake the main application.
*/
ClanCats::wake_app( 'App' );
// at this point the app has completet its own boot
CCProfiler::check( "CCF - App completed." );