Uname: Linux premium294.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.1.32 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.80.1
Your Ip: 216.73.216.223
User: mjbynoyq (1574) | Group: mjbynoyq (1570)
Safe Mode: OFF
Disable Function:
NONE

name : main.php
<?php

namespace Yoast\WP\SEO\Premium;

use Yoast\WP\Lib\Abstract_Main;
use Yoast\WP\SEO\Dependency_Injection\Container_Compiler;
use Yoast\WP\SEO\Premium\Generated\Cached_Container;
use Yoast\WP\SEO\Premium\Surfaces\Helpers_Surface;
use Yoast\WP\SEO\Surfaces\Classes_Surface;

/**
 * Main plugin class for premium.
 *
 * @property Classes_Surface $classes
 * @property Helpers_Surface $helpers
 */
class Main extends Abstract_Main {

	// @phpcs:disable Generic.Commenting.DocComment.MissingShort -- Short description is in the inherited comments.

	/**
	 * @inheritDoc
	 */
	protected function get_name() {
		return 'yoast-seo-premium';
	}

	/**
	 * @inheritDoc
	 */
	protected function get_container() {
		if (
			$this->is_development()
			&& \class_exists( '\Yoast\WP\SEO\Dependency_Injection\Container_Compiler' )
			&& \file_exists( __DIR__ . '/../config/dependency-injection/services.php' )
		) {
			// Exception here is unhandled as it will only occur in development.
			Container_Compiler::compile(
				$this->is_development(),
				__DIR__ . '/generated/container.php',
				__DIR__ . '/../config/dependency-injection/services.php',
				__DIR__ . '/../vendor/composer/autoload_classmap.php',
				'Yoast\WP\SEO\Premium\Generated'
			);
		}

		if ( \file_exists( __DIR__ . '/generated/container.php' ) ) {
			require_once __DIR__ . '/generated/container.php';

			return new Cached_Container();
		}

		return null;
	}

	/**
	 * @inheritDoc
	 */
	protected function get_surfaces() {
		return [
			'classes' => Classes_Surface::class,
			'helpers' => Helpers_Surface::class,
		];
	}
}
© 2025 XylotrechusZ