HosipLan

Untitled

Feb 14th, 2012
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #neon
  2. parameters:
  3.     salt: 1234
  4.  
  5. services:
  6.     authenticator: Acl\Security\Authenticator(@connection, %salt%)
  7.  
  8.  
  9.  
  10. # trida
  11.  
  12.  
  13. class Authenticator extends Object implements NS\IAuthenticator {
  14.    
  15.     /** @var DibiConnection */
  16.     private $db;
  17.  
  18.     private $salt;
  19.  
  20.     public function __construct(\DibiConnection $connection, $salt = NULL) {
  21.         $this->db = $connection;
  22.     $this->salt = $salt;
  23.     }
Advertisement
Add Comment
Please, Sign In to add comment