Version 1
[yaffs-website] / vendor / symfony / dependency-injection / Tests / Fixtures / php / services24.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\ParameterBag;
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         parent::__construct();
28         $this->methodMap = array(
29             'foo' => 'getFooService',
30         );
31     }
32
33     /**
34      * Gets the 'foo' service.
35      *
36      * This service is shared.
37      * This method always returns the same instance of the service.
38      *
39      * This service is autowired.
40      *
41      * @return \Foo A Foo instance
42      */
43     protected function getFooService()
44     {
45         return $this->services['foo'] = new \Foo();
46     }
47 }