| 1 |
<?php |
| 2 |
/** |
| 3 |
* Compatibility controller. |
| 4 |
* |
| 5 |
* @copyright (c) 2022, Code Atlantic LLC. |
| 6 |
* |
| 7 |
* @package ContentControl |
| 8 |
*/ |
| 9 |
|
| 10 |
namespace ContentControl\Controllers; |
| 11 |
|
| 12 |
use ContentControl\Base\Controller; |
| 13 |
use ContentControl\Controllers\Compatibility\Divi; |
| 14 |
use ContentControl\Controllers\Compatibility\Elementor; |
| 15 |
|
| 16 |
defined( 'ABSPATH' ) || exit; |
| 17 |
|
| 18 |
/** |
| 19 |
* Admin controller class. |
| 20 |
* |
| 21 |
* @package ContentControl |
| 22 |
*/ |
| 23 |
class Compatibility extends Controller { |
| 24 |
|
| 25 |
/** |
| 26 |
* Initialize admin controller. |
| 27 |
* |
| 28 |
* @return void |
| 29 |
*/ |
| 30 |
public function init() { |
| 31 |
$this->container->register_controllers( [ |
| 32 |
'Compatibility\Divi' => new Divi( $this->container ), |
| 33 |
'Compatibility\Elementor' => new Elementor( $this->container ), |
| 34 |
] ); |
| 35 |
} |
| 36 |
} |
| 37 |
|