FOC\Authenticate\Auth\CookieAuthenticate::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( Cake\Controller\ComponentRegistry $registry, array $config )
$registry Cake\Controller\ComponentRegistry The Component registry used on this request.
$config array Array of config to use.
    public function __construct(ComponentRegistry $registry, $config)
    {
        $this->_registry = $registry;
        $this->config(['cookie' => ['name' => 'RememberMe', 'expires' => '+2 weeks'], 'crypt' => 'aes']);
        $this->config($config);
    }