public function __construct(ComponentRegistry $registry, $config) { $this->_registry = $registry; $this->config(['cookie' => ['name' => 'RememberMe', 'expires' => '+2 weeks'], 'crypt' => 'aes']); $this->config($config); }