# double-opt-in/5.5.0/core/BaseController.class.php

Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification, version 5.5.0. 26 lines.

- Page: https://pluginprobe.com/plugins/double-opt-in/5.5.0/code/core/BaseController.class.php
- Raw: https://pluginprobe.com/plugins/double-opt-in/5.5.0/raw/core/BaseController.class.php
- Modified: 2025-09-23T13:34:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/double-opt-in/5.5.0/code/core/BaseController.class.php#L10-L20`.

```php
<?php

namespace forge12\contactform7\CF7DoubleOptIn;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

abstract class BaseController {
	/**
	 * @var CF7DoubleOptIn $Controller
	 */
	protected $Controller;

	public function __construct( $Controller ) {
		$this->Controller = $Controller;

		$this->on_init();
	}

	public function get_logger() {
		return $this->Controller->get_logger();
	}

	public abstract function on_init();
}
```
