37e3e7e1a1e69b54c91fc0933258378056371b40
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services13.php
1 <?php
2
3 use Symfony\Component\DependencyInjection\ContainerInterface;
4 use Symfony\Component\DependencyInjection\Container;
5 use Symfony\Component\DependencyInjection\Exception\InactiveScopeException;
6 use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
7 use Symfony\Component\DependencyInjection\Exception\LogicException;
8 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
9 use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
10
11 /**
12  * ProjectServiceContainer.
13  *
14  * This class has been auto-generated
15  * by the Symfony Dependency Injection Component.
16  */
17 class ProjectServiceContainer extends Container
18 {
19     private $parameters;
20     private $targetDirs = array();
21
22     /**
23      * Constructor.
24      */
25     public function __construct()
26     {
27         $this->services =
28         $this->scopedServices =
29         $this->scopeStacks = array();
30         $this->scopes = array();
31         $this->scopeChildren = array();
32         $this->methodMap = array(
33             'bar' => 'getBarService',
34         );
35
36         $this->aliases = array();
37     }
38
39     /**
40      * {@inheritdoc}
41      */
42     public function compile()
43     {
44         throw new LogicException('You cannot compile a dumped frozen container.');
45     }
46
47     /**
48      * {@inheritdoc}
49      */
50     public function isFrozen()
51     {
52         return true;
53     }
54
55     /**
56      * Gets the 'bar' service.
57      *
58      * This service is shared.
59      * This method always returns the same instance of the service.
60      *
61      * @return \stdClass A stdClass instance
62      */
63     protected function getBarService()
64     {
65         $a = new \stdClass();
66         $a->add($this);
67
68         return $this->services['bar'] = new \stdClass($a);
69     }
70 }