-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathfeather.php
More file actions
117 lines (109 loc) · 2.76 KB
/
Copy pathfeather.php
File metadata and controls
117 lines (109 loc) · 2.76 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
<?php
/*
|--------------------------------------------------------------------------
| Feather Configuration
|--------------------------------------------------------------------------
|
| This is the main configuration file for Feather. Generally the only
| items you will need to configure is the database connection.
|
*/
return array(
/*
|--------------------------------------------------------------------------
| Database Connection
|--------------------------------------------------------------------------
|
| Your database connection information.
|
*/
'database' => array(
'host' => 'localhost',
'database' => 'feather',
'username' => 'root',
'password' => '',
'prefix' => '',
'charset' => 'utf8',
'driver' => 'mysql'
),
/*
|--------------------------------------------------------------------------
| Feather Applications
|--------------------------------------------------------------------------
|
| Applications to be registered at runtime with Feather. It is advised you
| do not edit anything down there.
|
*/
'applications' => array(
'admin' => '(:feather)/admin',
'core' => '(:feather)'
),
/*
|--------------------------------------------------------------------------
| Feather Components
|--------------------------------------------------------------------------
|
| Components to be registered at runtime with Feather. It is advised you
| do not edit anything down there.
|
*/
'components' => array(
'auth' => function($feather)
{
$feather['auth'] = $feather->share(function($feather)
{
return new Feather\Components\Auth\Authorizer($feather);
});
},
'sso' => function($feather)
{
$feather['sso'] = $feather->share(function($feather)
{
return new Feather\Components\Auth\SSO($feather);
});
},
'gear' => function($feather)
{
$feather['gear'] = $feather->share(function($feather)
{
return new Feather\Components\Gear\Manager($feather);
});
},
'redirect' => function($feather)
{
$feather['redirect'] = function($feather)
{
return new Feather\Components\Support\Redirector(null);
};
},
'breadcrumbs' => function($feather)
{
$feather['breadcrumbs'] = $feather->share(function($feather)
{
return new Feather\Components\Support\Breadcrumbs($feather);
});
},
'validator' => function($feather)
{
$feather['validator'] = function($feather)
{
return new Feather\Components\Validation\Validator($feather);
};
},
'date' => function($feather)
{
$feather['date'] = function($feather)
{
return new Feather\Components\Support\Date($feather);
};
},
'paginator' => function($feather)
{
$feather['paginator'] = function($feather)
{
return new Feather\Components\Pagination\Paginator($feather);
};
}
),
);