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

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

- Page: https://pluginprobe.com/plugins/wordpress-seo/18.6/code/src/surfaces/classes-surface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/18.6/raw/src/surfaces/classes-surface.php
- Modified: 2022-03-22T14:19:38+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/18.6/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 {

	/**
	 * 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 );
	}
}

```
