Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F12944167
Application.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
682 B
Referenced Files
None
Subscribers
None
Application.php
View Options
<?php
namespace
Waystone\Workspaces\Engines\Framework
;
use
Keruald\Database\Database
;
use
Waystone\Workspaces\Engines\Errors\ErrorHandling
;
class
Application
{
public
static
function
init
()
:
void
{
Environment
::
init
();
ErrorHandling
::
init
();
}
public
static
function
getContext
(
array
$config
)
:
Context
{
$context
=
new
Context
();
$context
->
config
=
$config
;
$context
->
db
=
Database
::
load
(
$config
[
"sql"
]);
$context
->
session
=
Session
::
load
(
$context
->
db
);
$context
->
url
=
get_current_url_fragments
();
$context
->
initializeTemplateEngine
(
$context
->
config
[
'Theme'
]);
return
$context
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Nov 18, 17:05 (12 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3170550
Default Alt Text
Application.php (682 B)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment