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 Application; | |
use ToolkitApi\Toolkit; | |
/** | |
* Class IbmiToolkitAdapter | |
* @package Application | |
*/ | |
class IbmiToolkitAdapter extends Toolkit implements IbmiToolkitInterface |
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 | |
call_user_func(function () { | |
$phpBinary = '/usr/local/zendsvr6/bin/php-cli'; | |
$baseDirectory = getenv('ZS_APPLICATION_BASE_DIR'); | |
$migrationLogFile = getenv('ZS_MIGRATION_LOG_FILE'); | |
//foreach (['migrations:migrate', 'orm:generate-proxies', 'app:clear-cache'] as $operation) { | |
foreach (['migrations:migrate', 'app:clear-cache'] as $operation) { | |
$command = sprintf( |
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 Load\Service\Query; | |
use Load\Infrastructure\Persistence\LoadTable; | |
use ServiceBus\Query\QueryHandlerInterface; | |
use Zend\Db\Sql\Predicate\Operator; | |
use Zend\Db\Sql\Select; | |
/** | |
* Class FetchAllUnpaidLoadsQueryHandler |
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 RPG\Service\Factory; | |
use Zend\ServiceManager\FactoryInterface; | |
use Zend\ServiceManager\ServiceLocatorInterface; | |
use ToolkitApi\Toolkit; | |
/** | |
* Class ToolkitFactory | |
* @package RPG\Service\Factory | |
*/ |
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
Class CustomerRepository | |
{ | |
private $customerTable; | |
private $customerMapper; | |
public function __construct(CustomerTable $customerTable, CustomerMapper $customerMapper) | |
{ | |
$this->customerTable = $customerTable; | |
$this->CustomerMapper = $customerMapper; | |
} |
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 Temp; | |
use ToolkitApi\Toolkit; | |
class Dummy | |
{ | |
/** @var Toolkit */ | |
private $ibmiToolkit; |
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 | |
class MemberController | |
{ | |
private $memberService; | |
public function __construct(MemberService $memberService) | |
{ | |
$this->memberService = $memberService; | |
} | |
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 | |
class FileStreamer | |
{ | |
public function send($file, $dest = STDOUT) | |
{ | |
$fh = fopen($file, 'rb'); | |
while (! feof($fh)) { | |
$data = fread($fh, 8192); | |
fwrite($dest, $data); | |
} |
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
#!/bin/sh | |
# ################################################ | |
rpm_rte="rpm.rte" | |
rpm_wget="wget-1.9.1-1.aix5.1.ppc.rpm" | |
# ################################################ | |
# Setup rpm and wget | |
# ################################################ | |
function setup_rpm { | |
rm /usr/bin/rpm | |
if ! test -e "/QOpenSys/download/$rpm_rte"; then |
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
{ | |
"autoload": { | |
"classmap": ["ToolkitApi/"], | |
"psr-4": { | |
"ToolkitApi\\":"ToolkitApi", | |
} | |
}, | |
"autoload-dev": { | |
"psr-4": { | |
"ToolkitApiTest\\":"tests/ToolkitApiTest" |