I hereby claim:
- I am henninghorn on github.
- I am henninghorn (https://keybase.io/henninghorn) on keybase.
- I have a public key whose fingerprint is E90A 9C5A 3735 08DE 297B 3048 8149 14D1 0D4D 36EE
To claim this, I am signing this object:
| <?php | |
| use Zend\EventManager\AbstractListenerAggregate; | |
| use Zend\EventManager\EventManager; | |
| use Zend\EventManager\EventManagerAwareTrait; | |
| use Zend\EventManager\EventManagerInterface; | |
| require_once __DIR__ . '/vendor/autoload.php'; | |
| // Abstract aggregate listeners are a formalized way of writing a listener in a (testable) class |
| FROM php:7.1-fpm | |
| RUN apt-get update && apt-get install -y libmcrypt-dev mysql-client \ | |
| && docker-php-ext-install mcrypt pdo_mysql | |
| WORKDIR /var/www |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| class Nordnet { | |
| public $base_url; | |
| public function __construct($username, $password, $service = 'NEXTAPI', $base_url = 'api.test.nordnet.se/next', $api_version = '1') | |
| { | |
| // Step 1: First Base64-encode the username, password and timestamp (UNIX timestamp in milliseconds) and combine them with the character ‘:’. | |
| $login_string = base64_encode($username) . ':' . base64_encode($password) . ':' . base64_encode(microtime()); |
| <?php | |
| class Auth_Controller extends Base_Controller { | |
| public $restful = true; | |
| public function __construct() { | |
| $this->filter( 'before', 'guest' )->except( array( 'logout', 'validate' ) ); | |
| // Note: We may not always require CSRF on login for system based logins so ignore it here. | |
| $this->filter( 'before', 'csrf' )->on( 'post' )->except( array( 'login' ) ); | |
| } |