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
use PayPal\Service\AdaptivePaymentsService; | |
use PayPal\Types\AP\Receiver; | |
use PayPal\Types\AP\ReceiverList; | |
use PayPal\Types\AP\PayRequest; | |
use PayPal\Types\Common\RequestEnvelope; | |
use PayPal\Service\AdaptiveAccountsService; | |
use PayPal\Types\AA\AccountIdentifierType; | |
use PayPal\Types\AA\GetVerifiedStatusRequest; |
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
public function getControllerPluginConfig() | |
{ | |
return array( | |
'factories' => array( | |
// call this key zmPlugin in your action controller | |
'emailsPlugin' => function ($sm) | |
{ | |
$emailPluginController = new \Application\Controller\Plugin\EmailsPluginController(); | |
$emailPluginController->setServiceManager($sm); | |
return $emailPluginController; |
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
My controller Login: | |
public function authenticateAction() | |
{ | |
$request = $this->getRequest(); | |
if ($request->isPost()){ | |
$params = $request->getPost()->toArray(); | |
//check authentication... | |
$username = $request->getPost('npo-login-email'); |
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
ERROR: | |
Fatal error: Uncaught exception 'Zend\ServiceManager\Exception\ServiceNotFoundException' with message 'ZfcRbac\Role\RoleProviderPluginManager::get was unable to fetch or create an instance for ' in /Applications/MAMP/htdocs/RadiusCheck/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php:529 Stack trace: #0 /Applications/MAMP/htdocs/RadiusCheck/vendor/zendframework/zendframework/library/Zend/ServiceManager/AbstractPluginManager.php(103): Zend\ServiceManager\ServiceManager->get(NULL, true) #1 /Applications/MAMP/htdocs/RadiusCheck/vendor/zf-commons/zfc-rbac/src/ZfcRbac/Factory/RoleServiceFactory.php(51): Zend\ServiceManager\AbstractPluginManager->get(NULL, false) #2 [internal function]: ZfcRbac\Factory\RoleServiceFactory->createService(Object(Zend\ServiceManager\ServiceManager), 'zfcrbacservicer...', 'ZfcRbac\Service...') #3 /Applications/MAMP/htdocs/RadiusCheck/vendor/zendframework/zendframework/library/Zend/ServiceManager/ServiceManager.php(902): call_user_func(Array, Obj |
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
var http = require('http'); | |
var https = require('https'); | |
var fs = require('fs'); | |
var socket = require('socket.io'); | |
var express = require('express'); | |
var app = express(); | |
var port = 3000; | |
var server = https.createServer(sslOptions, app).listen(port, function(){ |
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
'asset_manager' => array( | |
'caching' => array( | |
'default' => array( | |
'cache' => 'Assetic\\Cache\\FilesystemCache', | |
'options' => array( | |
'dir' => 'public/cache' | |
) | |
) | |
), | |
'resolver_configs' => array( |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<project name="PHP_CodeCoverage"> | |
<target name="clean" description="Cleanup build artifacts"> | |
<delete dir="${basedir}/vendor" /> | |
<delete file="${basedir}/composer.lock" /> | |
</target> | |
<target name="composer" depends="clean" description="Install dependencies with Composer"> | |
<tstamp> | |
<format property="thirty.days.ago" pattern="MM/dd/yyyy hh:mm aa" offset="-30" unit="day" /> |
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
$http = new Client([ | |
'base_uri' => 'http://esolidar-api', | |
]); | |
// print_r($http); | |
$request = $http->post('/users/auth', [ | |
'json' => [ | |
'username' => 'vieira@miguelvieira.com.pt', | |
'password' => 'Jk6gci3PyjhHk1' | |
] | |
]); |
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
$client = new Client([ | |
'base_uri' => 'http://esolidar-api', | |
'headers' => ['Accept' => 'application/json'], | |
]); | |
$headers = ['Content-type' => 'application/json; charset=UTF-8', 'Accept' => 'application/json']; | |
$body = json_encode(array('username' => $params['username'], 'password' => $params['password'])); | |
$request = new Request('POST', 'http://esolidar-api/users/auth', $headers, $body); | |
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
$statement = "SELECT id, name FROM users WHERE status = 'P'"; | |
/** | |
* Query string | |
*/ | |
public function queryString($statement) | |
{ | |
$adapter = $this->adapter; | |
$results = $adapter->query($statement, $adapter::QUERY_MODE_EXECUTE); | |
return $results; |
OlderNewer