1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
<?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 The class to get the instance of. * * @return mixed The instance of the class. */ public function get( $class ) { return $this->container->get( $class ); } }
|