protected function __construct() { //Get the security instance and provide security to cookies $this->security = Security::instance(function ($instance) { return $instance; }); }