PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / trunk
Yoast SEO – Advanced SEO with real-time guidance and built-in AI vtrunk
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
wordpress-seo / vendor_prefixed / symfony / dependency-injection / ContainerInterface.php

ContainerInterface.php in Yoast SEO – Advanced SEO with real-time guidance and built-in AI trunk, at vendor_prefixed/symfony/dependency-injection/ContainerInterface.php

76 lines 2.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11 namespace YoastSEO_Vendor\Symfony\Component\DependencyInjection;
12
13 use YoastSEO_Vendor\Psr\Container\ContainerInterface as PsrContainerInterface;
14 use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
15 use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
16 use YoastSEO_Vendor\Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
17 /**
18 * ContainerInterface is the interface implemented by service container classes.
19 *
20 * @author Fabien Potencier <fabien@symfony.com>
21 * @author Johannes M. Schmitt <schmittjoh@gmail.com>
22 */
23 interface ContainerInterface extends \YoastSEO_Vendor\Psr\Container\ContainerInterface
24 {
25 public const RUNTIME_EXCEPTION_ON_INVALID_REFERENCE = 0;
26 public const EXCEPTION_ON_INVALID_REFERENCE = 1;
27 public const NULL_ON_INVALID_REFERENCE = 2;
28 public const IGNORE_ON_INVALID_REFERENCE = 3;
29 public const IGNORE_ON_UNINITIALIZED_REFERENCE = 4;
30 /**
31 * Sets a service.
32 */
33 public function set(string $id, ?object $service);
34 /**
35 * Gets a service.
36 *
37 * @param string $id The service identifier
38 * @param int $invalidBehavior The behavior when the service does not exist
39 *
40 * @return object|null
41 *
42 * @throws ServiceCircularReferenceException When a circular reference is detected
43 * @throws ServiceNotFoundException When the service is not defined
44 *
45 * @see Reference
46 */
47 public function get(string $id, int $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
48 /**
49 * @return bool
50 */
51 public function has(string $id);
52 /**
53 * Check for whether or not a service has been initialized.
54 *
55 * @return bool
56 */
57 public function initialized(string $id);
58 /**
59 * @return array|bool|string|int|float|\UnitEnum|null
60 *
61 * @throws InvalidArgumentException if the parameter is not defined
62 */
63 public function getParameter(string $name);
64 /**
65 * @return bool
66 */
67 public function hasParameter(string $name);
68 /**
69 * Sets a parameter.
70 *
71 * @param string $name The parameter name
72 * @param array|bool|string|int|float|\UnitEnum|null $value The parameter value
73 */
74 public function setParameter(string $name, $value);
75 }
76