This file contains hidden or 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
public function getConfigFromDb() | |
{ | |
if (!is_null($this->configInDb)) { | |
return $this->configInDb; | |
} | |
$sql = new Sql($this->getSlaveDbAdapter()); | |
$select = $sql->select() | |
->from('languages'); |
This file contains hidden or 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 | |
abstract class AbstractCello | |
{ | |
/** | |
* @var EventManager | |
*/ | |
protected $em; | |
protected function triggerPre($methodName, $params) |
This file contains hidden or 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 | |
public function findMemberById($id) | |
{ | |
$params = $this->getEventManager()->prepareArgs(compact(func_get_args())); | |
$result = $this->getEventManager()->trigger(__FUNCTION__ . '.pre', $this, $params, function ($listenerOutput) { | |
return ($listenerOutput != null); | |
}); | |
extract((array)$params); | |
This file contains hidden or 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
require 'vendor/autoload.php'; | |
use Aws\Sns\Validator\SnsValidator; | |
$incomingMessage = json_decode($HTTP_RAW_POST_DATA); | |
try { | |
// Case 1: | |
// Full auto pilot mode (this detects the strategy based on the 'Type' property of the incoming message |
NewerOlder