mirror of
https://github.com/proelements/proelements.git
synced 2026-04-19 02:22:18 +00:00
v3.33.1
This commit is contained in:
28
core/data/endpoints/base.php
Normal file
28
core/data/endpoints/base.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user