852e5a2f3c6b24748ea2f674ff81791440814ac9
[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\InvalidArgumentException;
6 use Symfony\Component\DependencyInjection\Exception\LogicException;
7 use Symfony\Component\DependencyInjection\Exception\RuntimeException;
8 use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
9
10 /**
11  * ProjectServiceContainer.
12  *
13  * This class has been auto-generated
14  * by the Symfony Dependency Injection Component.
15  */
16 class ProjectServiceContainer extends Container
17 {
18     private $parameters;
19     private $targetDirs = array();
20
21     /**
22      * Constructor.
23      */
24     public function __construct()
25     {
26         $this->services = array();
27         $this->methodMap = array(
28             'bar' => 'getBarService',
29         );
30
31         $this->aliases = array();
32     }
33
34     /**
35      * {@inheritdoc}
36      */
37     public function compile()
38     {
39         throw new LogicException('You cannot compile a dumped frozen container.');
40     }
41
42     /**
43      * {@inheritdoc}
44      */
45     public function isFrozen()
46     {
47         return true;
48     }
49
50     /**
51      * Gets the public 'bar' shared service.
52      *
53      * @return \stdClass
54      */
55     protected function getBarService()
56     {
57         $a = new \stdClass();
58         $a->add($this);
59
60         return $this->services['bar'] = new \stdClass($a);
61     }
62 }