-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from logeecom/feature/multi-currency-support
Release version 1.3.0
- Loading branch information
Showing
29 changed files
with
344 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
Packlink/Controllers/Backend/PacklinkSystemInfoController.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
|
||
use Packlink\BusinessLogic\Controllers\SystemInfoController; | ||
use Packlink\Utilities\Response; | ||
|
||
/** | ||
* Class Shopware_Controllers_Backend_PacklinkSystemInfo | ||
*/ | ||
class Shopware_Controllers_Backend_PacklinkSystemInfoController extends Enlight_Controller_Action | ||
{ | ||
/** | ||
* @var SystemInfoController | ||
*/ | ||
private $baseController; | ||
|
||
/** | ||
* Returns a list with actions which should not be validated for CSRF protection | ||
* | ||
* @return string[] | ||
*/ | ||
public function getWhitelistedCSRFActions() | ||
{ | ||
return [ | ||
'get' | ||
]; | ||
} | ||
|
||
/** | ||
* Returns system information. | ||
*/ | ||
public function getAction() | ||
{ | ||
Response::dtoEntitiesResponse($this->getBaseController()->get()); | ||
} | ||
|
||
/** | ||
* @return SystemInfoController | ||
*/ | ||
protected function getBaseController() | ||
{ | ||
if ($this->baseController === null) { | ||
$this->baseController = new SystemInfoController(); | ||
} | ||
|
||
return $this->baseController; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.