params = $params; $this->driver = $driver; $this->config = $config; $this->eventManager = $eventManager; parent::__construct($params, $driver, $config, $eventManager); } public function __sleep() { return ['params', 'driver', 'config', 'eventManager']; } public function __wakeup() { parent::__construct($this->params, $this->driver, $this->config, $this->eventManager); } }