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
<?php | |
// Needs to be used with a .htaccess file pointing all requests to it | |
$uri = $_SERVER['REQUEST_URI']; | |
$queryString = http_build_query($_GET); | |
$payload = file_get_contents('php://input'); | |
$url = 'https://foo.bar' . $uri; |
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
<?php | |
define('LARAVEL_START', microtime(true)); | |
require __DIR__.'/vendor/autoload.php'; | |
$app = require_once __DIR__ . '/bootstrap/app.php'; | |
// Laravel does not create that directory automatically so we have to create it | |
// You can remove this if you do not use views in your application (e.g. for an API) |
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
<?php | |
// include environment related files | |
include_once '../inc/env.inc.php'; | |
// will return JSON response | |
header('Content-type: application/json'); | |
WEApplication::serviceAvailabilityCheck(); | |
$secretDev = isset($_POST['secret_dev']) ? $_POST['secret_dev'] : ''; |
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
<?php | |
namespace Weengs\DataFetcher\Collections\Admin; | |
use Weengs\DataFetcher\DataFetcherInterface; | |
use Weengs\Models\WmsUser\App; | |
class ListApps implements DataFetcherInterface | |
{ | |
/** |
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
<?php | |
/** | |
* Requests a call from the sales team | |
* | |
* @method PUT | |
* @param Request $request | |
* @param int $userId | |
* @param RequestPhoneCall\Service $requestCall | |
* |
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
<?php | |
namespace Weengs\Services\Merchant\Onboarding\RequestPhoneCall; | |
use Weengs\Models\User\User; | |
use Weengs\Services\Common\BaseServiceResponse; | |
class Response extends BaseServiceResponse | |
{ | |
/** |
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
<?php | |
namespace Weengs\Services\Merchant\Onboarding\RequestPhoneCall; | |
use Weengs\Exceptions\ValidationException; | |
use Weengs\Services\Common\BaseServiceRequest; | |
class Request extends BaseServiceRequest | |
{ | |
/** |
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
<?php | |
namespace Weengs\Services\Merchant\Onboarding\RequestPhoneCall; | |
use Weengs\Exceptions\BusinessException; | |
use Weengs\Models\User\Onboarding; | |
use Weengs\Models\User\User; | |
use Weengs\Services\Common\BaseService; | |
use Weengs\Services\Common\RequestInterface; | |
use Weengs\Services\Common\ResponseInterface; |
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
<?php | |
/** | |
* Create new shipment barcode | |
* | |
* $param Request $request | |
* @return void | |
**/ | |
public function createShipmentBarcode(Request $request) | |
{ | |
// validate required fields |
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
# Install it as a yum package instead of throgh pip (will save you from lots of hassle) | |
# first get epel | |
sudo amazon-linux-extras install epel | |
# then install supervisor | |
sudo yum install supervisor |
NewerOlder