Code
Explorer
You are a developer and looking for Shopware projects?
Apply Now!
sSystem example
/** * Event listener method * * @return \sSystem */
public
function
onInitResourceSystem
(
Enlight_Event_EventArgs
$args
)
{
$config
=
Shopware
(
)
->
Config
(
)
;
$request
=
Shopware
(
)
->
Front
(
)
->
Request
(
)
;
$system
=
new
sSystem
(
$request
)
;
Shopware
(
)
->
Container
(
)
->
set
(
'system',
$system
)
;
$system
->sMODULES =
Shopware
(
)
->
Modules
(
)
;
$system
->sSMARTY =
Shopware
(
)
->
Template
(
)
;
$system
->sCONFIG =
$config
;
$system
->sMailer =
Shopware
(
)
->
Container
(
)
->
get
(
'mail'
)
;
if
(
Shopware
(
)
->
Container
(
)
->
initialized
(
'session'
)
)
{
$system
->_SESSION =
Shopware
(
)
->
Session
(
)
;
$system
->sSESSION_ID =
Shopware
(
)
->
Session
(
)
->
get
(
'sessionId'
)
;