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
#0 /var/ftridp/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(640): Zend\ServiceManager\AbstractPluginManager->createFromInvokable('logincontroller...', 'Login\\Controlle...') | |
#1 /var/ftridp/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(597): Zend\ServiceManager\ServiceManager->doCreate('Login\\Controlle...', 'logincontroller...') | |
#2 /var/ftridp/vendor/zendframework/zend-servicemanager/src/ServiceManager.php(530): Zend\ServiceManager\ServiceManager->create(Array) | |
#3 /var/ftridp/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php(161): Zend\ServiceManager\ServiceManager->get('Login\\Controlle...', true) | |
#4 /var/ftridp/vendor/zendframework/zend-mvc/src/DispatchListener.php(94): Zend\ServiceManager\AbstractPluginManager->get('Login\\Controlle...') | |
#5 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent)) | |
#6 /var/ftridp/vendor/zendframework/zend-eventmanager/src/EventManager.php(490): call_user_func(Array, Object(Zend\Mvc\MvcEven |
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
#List unique values in a DataFrame column | |
pd.unique(df.column_name.ravel()) | |
#Convert Series datatype to numeric, getting rid of any non-numeric values | |
df['col'] = df['col'].astype(str).convert_objects(convert_numeric=True) | |
#Grab DataFrame rows where column has certain values | |
valuelist = ['value1', 'value2', 'value3'] | |
df = df[df.column.isin(value_list)] |
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
@Oapp.module "Entities", (Entities, App, Backbone, Marionette, $, _) -> | |
class Entities.User extends Entities.Model | |
urlRoot: 'https://xxxxxxxxxxxx.com/api/users' | |
class Entities.UserCollection extends Entities.Collection | |
model: Entities.User | |
url: 'https://xxxxxxxxxxxxxxx.com/api/users' | |
parse: (respose, options) -> | |
return respose._embedded.Users |
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->serviceManager->getServiceLocator()->get('config'); | |
$client = new \Zend\Http\Client( | |
'https://oapp-json04.globalinxdev.com/api/mainmenu/full', array( | |
'maxredirects' => 0, | |
'timeout' => 30, | |
'sslcapath' => '/etc/pki/tls/certs/', | |
'Accept' => 'application/json', | |
'Content-Type' => 'application/json' | |
)); |
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 | |
public function getConfig() | |
{ | |
$userValidation = require __DIR__ . '/config/validation.config.php'; | |
$userConfig = \Zend\Stdlib\ArrayUtils::merge($userValidation, require __DIR__ . '/config/module.config.php'); | |
return $userConfig; | |
//return include __DIR__ . '/config/module.config.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
<?php | |
return array( | |
'router' => array( | |
'routes' => array( | |
'users-api.rest.users' => array( | |
'type' => 'Segment', | |
'options' => array( | |
'route' => '/api/users[/:id]', | |
'defaults' => array( | |
'controller' => 'UsersApi\\V1\\Rest\\Users\\Controller', |
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 | |
/**** config.php *****/ | |
'hydrators' => array( | |
'invokables' => array( | |
'UserEntityHydrater' => 'UsersApi\\V1\\Rest\\Hydrators\\UserEntityHydrate', | |
), | |
), |
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 RootRouter = Backbone.Router.extend({ | |
routes: { | |
"acllist": "showAclRules", | |
"aclresources": "showAclResources", | |
}, | |
initialize: function () { | |
//console.log('initialize'); | |
//this.AclListModel = new AclListModel(); |
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 AccountServiceTest; | |
use Zend\Loader\AutoloaderFactory; | |
use Zend\Mvc\Service\ServiceManagerConfig; | |
use Zend\ServiceManager\ServiceManager; | |
use RuntimeException; | |
error_reporting(E_ALL | E_STRICT); |
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 AccountServiceTest\Service; | |
use PHPUnit_Framework_TestCase; | |
use AccountService\Service\Accounts as Accounts; | |
class AccountsServiceTest extends PHPUnit_Framework_TestCase { | |
public $sm; | |
public $login; | |
public $entityManager; |