# wordpress-seo/28.3/src/surfaces/classes-surface.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version 28.3. 41 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/28.3/code/src/surfaces/classes-surface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/28.3/raw/src/surfaces/classes-surface.php
- Modified: 2022-09-01T06:45:32+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/28.3/code/src/surfaces/classes-surface.php#L10-L20`.

```php
<?php

namespace Yoast\WP\SEO\Surfaces;

use YoastSEO_Vendor\Symfony\Component\DependencyInjection\ContainerInterface;

/**
 * Class Classes_Surface.
 *
 * Surface for the indexables.
 */
class Classes_Surface {

	/**
	 * The dependency injection container.
	 *
	 * @var ContainerInterface
	 */
	public $container;

	/**
	 * Loader constructor.
	 *
	 * @param ContainerInterface $container The dependency injection container.
	 */
	public function __construct( ContainerInterface $container ) {
		$this->container = $container;
	}

	/**
	 * Returns the instance of a class. Handy for unhooking things.
	 *
	 * @param string $class_name The class to get the instance of.
	 *
	 * @return mixed The instance of the class.
	 */
	public function get( $class_name ) {
		return $this->container->get( $class_name );
	}
}

```
