BaseController.class.php in Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification 5.5.0, at core/BaseController.class.php
| 1 | <?php |
| 2 | |
| 3 | namespace forge12\contactform7\CF7DoubleOptIn; |
| 4 | |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; |
| 7 | } |
| 8 | |
| 9 | abstract class BaseController { |
| 10 | /** |
| 11 | * @var CF7DoubleOptIn $Controller |
| 12 | */ |
| 13 | protected $Controller; |
| 14 | |
| 15 | public function __construct( $Controller ) { |
| 16 | $this->Controller = $Controller; |
| 17 | |
| 18 | $this->on_init(); |
| 19 | } |
| 20 | |
| 21 | public function get_logger() { |
| 22 | return $this->Controller->get_logger(); |
| 23 | } |
| 24 | |
| 25 | public abstract function on_init(); |
| 26 | } |