mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
29 lines
464 B
PHP
29 lines
464 B
PHP
<?php
|
|
namespace ElementorPro\Core\Data\Endpoints;
|
|
|
|
use ElementorPro\Core\Data\Controller;
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly.
|
|
}
|
|
|
|
class Base {
|
|
|
|
protected $controller;
|
|
|
|
protected function register() {}
|
|
|
|
/**
|
|
* Endpoint constructor.
|
|
*
|
|
* runs `$this->register()`.
|
|
*
|
|
* @param Controller $controller
|
|
*/
|
|
public function __construct( Controller $controller ) {
|
|
$this->controller = $controller;
|
|
|
|
$this->register();
|
|
}
|
|
}
|