PageRenderTime 97ms CodeModel.GetById 39ms RepoModel.GetById 1ms app.codeStats 1ms

/app/cache/dev/appDevDebugProjectContainer.php

https://github.com/lenybernard/anakin
PHP | 2551 lines | 1191 code | 210 blank | 1150 comment | 4 complexity | 193ce07ae6365a198106a93b2235905a MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. use Symfony\Component\DependencyInjection\ContainerInterface;
  3. use Symfony\Component\DependencyInjection\Container;
  4. use Symfony\Component\DependencyInjection\Exception\InactiveScopeException;
  5. use Symfony\Component\DependencyInjection\Reference;
  6. use Symfony\Component\DependencyInjection\Parameter;
  7. use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
  8. /**
  9. * appDevDebugProjectContainer
  10. *
  11. * This class has been auto-generated
  12. * by the Symfony Dependency Injection Component.
  13. */
  14. class appDevDebugProjectContainer extends Container
  15. {
  16. /**
  17. * Constructor.
  18. */
  19. public function __construct()
  20. {
  21. $this->parameters = $this->getDefaultParameters();
  22. $this->services =
  23. $this->scopedServices =
  24. $this->scopeStacks = array();
  25. $this->set('service_container', $this);
  26. $this->scopes = array('request' => 'container');
  27. $this->scopeChildren = array('request' => array());
  28. }
  29. /**
  30. * Gets the 'acme.demo.listener' service.
  31. *
  32. * This service is shared.
  33. * This method always returns the same instance of the service.
  34. *
  35. * @return Acme\DemoBundle\ControllerListener A Acme\DemoBundle\ControllerListener instance.
  36. */
  37. protected function getAcme_Demo_ListenerService()
  38. {
  39. return $this->services['acme.demo.listener'] = new \Acme\DemoBundle\ControllerListener($this->get('twig.extension.acme.demo'));
  40. }
  41. /**
  42. * Gets the 'annotation_reader' service.
  43. *
  44. * This service is shared.
  45. * This method always returns the same instance of the service.
  46. *
  47. * @return Doctrine\Common\Annotations\FileCacheReader A Doctrine\Common\Annotations\FileCacheReader instance.
  48. */
  49. protected function getAnnotationReaderService()
  50. {
  51. return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\FileCacheReader(new \Doctrine\Common\Annotations\AnnotationReader(), '/Users/lenybernard/Workspace/labo/anakin/app/cache/dev/annotations', true);
  52. }
  53. /**
  54. * Gets the 'assetic.asset_manager' service.
  55. *
  56. * This service is shared.
  57. * This method always returns the same instance of the service.
  58. *
  59. * @return Assetic\Factory\LazyAssetManager A Assetic\Factory\LazyAssetManager instance.
  60. */
  61. protected function getAssetic_AssetManagerService()
  62. {
  63. $a = $this->get('templating.loader');
  64. $this->services['assetic.asset_manager'] = $instance = new \Assetic\Factory\LazyAssetManager($this->get('assetic.asset_factory'), array('twig' => new \Assetic\Factory\Loader\CachedFormulaLoader(new \Assetic\Extension\Twig\TwigFormulaLoader($this->get('twig')), new \Assetic\Cache\ConfigCache('/Users/lenybernard/Workspace/labo/anakin/app/cache/dev/assetic/config'), true)));
  65. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'FrameworkBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/FrameworkBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'FrameworkBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  66. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SecurityBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/SecurityBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SecurityBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/SecurityBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  67. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'TwigBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/TwigBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'TwigBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/TwigBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  68. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'MonologBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/MonologBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'MonologBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/MonologBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  69. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SwiftmailerBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/SwiftmailerBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SwiftmailerBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/SwiftmailerBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  70. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'DoctrineBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/DoctrineBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'DoctrineBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  71. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'AsseticBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/AsseticBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'AsseticBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/bundles/Symfony/Bundle/AsseticBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  72. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SensioFrameworkExtraBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/SensioFrameworkExtraBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SensioFrameworkExtraBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/bundles/Sensio/Bundle/FrameworkExtraBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  73. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'JMSSecurityExtraBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/JMSSecurityExtraBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'JMSSecurityExtraBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/bundles/JMS/SecurityExtraBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  74. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'AcmeDemoBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/AcmeDemoBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'AcmeDemoBundle', '/Users/lenybernard/Workspace/labo/anakin/src/Acme/DemoBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  75. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'WebProfilerBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/WebProfilerBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'WebProfilerBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/symfony/src/Symfony/Bundle/WebProfilerBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  76. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SensioDistributionBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/SensioDistributionBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SensioDistributionBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/bundles/Sensio/Bundle/DistributionBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  77. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\CoalescingDirectoryResource(array(0 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SensioGeneratorBundle', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/SensioGeneratorBundle/views', '/\\.[^.]+\\.twig$/'), 1 => new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, 'SensioGeneratorBundle', '/Users/lenybernard/Workspace/labo/anakin/vendor/bundles/Sensio/Bundle/GeneratorBundle/Resources/views', '/\\.[^.]+\\.twig$/'))), 'twig');
  78. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($a, '', '/Users/lenybernard/Workspace/labo/anakin/app/Resources/views', '/\\.[^.]+\\.twig$/'), 'twig');
  79. return $instance;
  80. }
  81. /**
  82. * Gets the 'assetic.controller' service.
  83. *
  84. * @return Symfony\Bundle\AsseticBundle\Controller\AsseticController A Symfony\Bundle\AsseticBundle\Controller\AsseticController instance.
  85. */
  86. protected function getAssetic_ControllerService()
  87. {
  88. return new \Symfony\Bundle\AsseticBundle\Controller\AsseticController($this->get('request'), $this->get('assetic.asset_manager'), $this->get('assetic.cache'), false, $this->get('profiler'));
  89. }
  90. /**
  91. * Gets the 'assetic.filter.cssrewrite' service.
  92. *
  93. * This service is shared.
  94. * This method always returns the same instance of the service.
  95. *
  96. * @return Assetic\Filter\CssRewriteFilter A Assetic\Filter\CssRewriteFilter instance.
  97. */
  98. protected function getAssetic_Filter_CssrewriteService()
  99. {
  100. return $this->services['assetic.filter.cssrewrite'] = new \Assetic\Filter\CssRewriteFilter();
  101. }
  102. /**
  103. * Gets the 'assetic.filter_manager' service.
  104. *
  105. * This service is shared.
  106. * This method always returns the same instance of the service.
  107. *
  108. * @return Symfony\Bundle\AsseticBundle\FilterManager A Symfony\Bundle\AsseticBundle\FilterManager instance.
  109. */
  110. protected function getAssetic_FilterManagerService()
  111. {
  112. return $this->services['assetic.filter_manager'] = new \Symfony\Bundle\AsseticBundle\FilterManager($this, array('cssrewrite' => 'assetic.filter.cssrewrite'));
  113. }
  114. /**
  115. * Gets the 'assetic.request_listener' service.
  116. *
  117. * This service is shared.
  118. * This method always returns the same instance of the service.
  119. *
  120. * @return Symfony\Bundle\AsseticBundle\EventListener\RequestListener A Symfony\Bundle\AsseticBundle\EventListener\RequestListener instance.
  121. */
  122. protected function getAssetic_RequestListenerService()
  123. {
  124. return $this->services['assetic.request_listener'] = new \Symfony\Bundle\AsseticBundle\EventListener\RequestListener();
  125. }
  126. /**
  127. * Gets the 'cache_warmer' service.
  128. *
  129. * This service is shared.
  130. * This method always returns the same instance of the service.
  131. *
  132. * @return Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate A Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate instance.
  133. */
  134. protected function getCacheWarmerService()
  135. {
  136. $a = $this->get('kernel');
  137. $b = $this->get('templating.name_parser');
  138. $c = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder($a, $b, '/Users/lenybernard/Workspace/labo/anakin/app/Resources');
  139. return $this->services['cache_warmer'] = new \Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate(array(0 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplatePathsCacheWarmer($c, $this->get('templating.locator')), 1 => new \Symfony\Bundle\AsseticBundle\CacheWarmer\AssetManagerCacheWarmer($this), 2 => new \Symfony\Bundle\FrameworkBundle\CacheWarmer\RouterCacheWarmer($this->get('router')), 3 => new \Symfony\Bundle\TwigBundle\CacheWarmer\TemplateCacheCacheWarmer($this, $c), 4 => new \Symfony\Bridge\Doctrine\CacheWarmer\ProxyCacheWarmer($this->get('doctrine'))));
  140. }
  141. /**
  142. * Gets the 'data_collector.request' service.
  143. *
  144. * This service is shared.
  145. * This method always returns the same instance of the service.
  146. *
  147. * @return Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector A Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector instance.
  148. */
  149. protected function getDataCollector_RequestService()
  150. {
  151. return $this->services['data_collector.request'] = new \Symfony\Bundle\FrameworkBundle\DataCollector\RequestDataCollector();
  152. }
  153. /**
  154. * Gets the 'doctrine' service.
  155. *
  156. * This service is shared.
  157. * This method always returns the same instance of the service.
  158. *
  159. * @return Symfony\Bundle\DoctrineBundle\Registry A Symfony\Bundle\DoctrineBundle\Registry instance.
  160. */
  161. protected function getDoctrineService()
  162. {
  163. return $this->services['doctrine'] = new \Symfony\Bundle\DoctrineBundle\Registry($this, array('default' => 'doctrine.dbal.default_connection'), array('default' => 'doctrine.orm.default_entity_manager'), 'default', 'default');
  164. }
  165. /**
  166. * Gets the 'doctrine.dbal.connection_factory' service.
  167. *
  168. * This service is shared.
  169. * This method always returns the same instance of the service.
  170. *
  171. * @return Symfony\Bundle\DoctrineBundle\ConnectionFactory A Symfony\Bundle\DoctrineBundle\ConnectionFactory instance.
  172. */
  173. protected function getDoctrine_Dbal_ConnectionFactoryService()
  174. {
  175. return $this->services['doctrine.dbal.connection_factory'] = new \Symfony\Bundle\DoctrineBundle\ConnectionFactory(array());
  176. }
  177. /**
  178. * Gets the 'doctrine.dbal.default_connection' service.
  179. *
  180. * This service is shared.
  181. * This method always returns the same instance of the service.
  182. *
  183. * @return stdClass A stdClass instance.
  184. */
  185. protected function getDoctrine_Dbal_DefaultConnectionService()
  186. {
  187. $a = new \Doctrine\DBAL\Configuration();
  188. $a->setSQLLogger($this->get('doctrine.dbal.logger'));
  189. $b = new \Doctrine\Common\EventManager();
  190. $b->addEventSubscriber(new \Doctrine\DBAL\Event\Listeners\MysqlSessionInit('UTF8'));
  191. return $this->services['doctrine.dbal.default_connection'] = $this->get('doctrine.dbal.connection_factory')->createConnection(array('dbname' => 'anakin', 'host' => 'localhost', 'port' => '', 'user' => 'root', 'password' => 'root', 'driver' => 'pdo_mysql', 'driverOptions' => array()), $a, $b, array());
  192. }
  193. /**
  194. * Gets the 'doctrine.orm.default_entity_manager' service.
  195. *
  196. * This service is shared.
  197. * This method always returns the same instance of the service.
  198. *
  199. * @return Doctrine\ORM\EntityManager A Doctrine\ORM\EntityManager instance.
  200. */
  201. protected function getDoctrine_Orm_DefaultEntityManagerService()
  202. {
  203. $a = new \Doctrine\Common\Cache\ArrayCache();
  204. $a->setNamespace('sf2orm_default_7f7146cd54f8e41ae01b7b8c2601a14b');
  205. $b = new \Doctrine\Common\Cache\ArrayCache();
  206. $b->setNamespace('sf2orm_default_7f7146cd54f8e41ae01b7b8c2601a14b');
  207. $c = new \Doctrine\Common\Cache\ArrayCache();
  208. $c->setNamespace('sf2orm_default_7f7146cd54f8e41ae01b7b8c2601a14b');
  209. $d = new \Doctrine\ORM\Mapping\Driver\DriverChain();
  210. $d->addDriver(new \Doctrine\ORM\Mapping\Driver\AnnotationDriver(new \Symfony\Bridge\Doctrine\Annotations\IndexedReader($this->get('annotation_reader')), array(0 => '/Users/lenybernard/Workspace/labo/anakin/src/Acme/DemoBundle/Entity')), 'Acme\\DemoBundle\\Entity');
  211. $e = new \Doctrine\ORM\Configuration();
  212. $e->setEntityNamespaces(array('AcmeDemoBundle' => 'Acme\\DemoBundle\\Entity'));
  213. $e->setMetadataCacheImpl($a);
  214. $e->setQueryCacheImpl($b);
  215. $e->setResultCacheImpl($c);
  216. $e->setMetadataDriverImpl($d);
  217. $e->setProxyDir('/Users/lenybernard/Workspace/labo/anakin/app/cache/dev/doctrine/orm/Proxies');
  218. $e->setProxyNamespace('Proxies');
  219. $e->setAutoGenerateProxyClasses(true);
  220. $e->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
  221. return $this->services['doctrine.orm.default_entity_manager'] = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $e);
  222. }
  223. /**
  224. * Gets the 'doctrine.orm.validator.unique' service.
  225. *
  226. * This service is shared.
  227. * This method always returns the same instance of the service.
  228. *
  229. * @return Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator A Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator instance.
  230. */
  231. protected function getDoctrine_Orm_Validator_UniqueService()
  232. {
  233. return $this->services['doctrine.orm.validator.unique'] = new \Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator($this->get('doctrine'));
  234. }
  235. /**
  236. * Gets the 'doctrine.orm.validator_initializer' service.
  237. *
  238. * This service is shared.
  239. * This method always returns the same instance of the service.
  240. *
  241. * @return Symfony\Bridge\Doctrine\Validator\EntityInitializer A Symfony\Bridge\Doctrine\Validator\EntityInitializer instance.
  242. */
  243. protected function getDoctrine_Orm_ValidatorInitializerService()
  244. {
  245. return $this->services['doctrine.orm.validator_initializer'] = new \Symfony\Bridge\Doctrine\Validator\EntityInitializer($this->get('doctrine'));
  246. }
  247. /**
  248. * Gets the 'event_dispatcher' service.
  249. *
  250. * This service is shared.
  251. * This method always returns the same instance of the service.
  252. *
  253. * @return Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher A Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher instance.
  254. */
  255. protected function getEventDispatcherService()
  256. {
  257. $this->services['event_dispatcher'] = $instance = new \Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher($this, $this->get('monolog.logger.event'));
  258. $instance->addListenerService('kernel.request', array(0 => 'router_listener', 1 => 'onEarlyKernelRequest'), 255);
  259. $instance->addListenerService('kernel.request', array(0 => 'router_listener', 1 => 'onKernelRequest'), 0);
  260. $instance->addListenerService('kernel.response', array(0 => 'response_listener', 1 => 'onKernelResponse'), 0);
  261. $instance->addListenerService('kernel.request', array(0 => 'session_listener', 1 => 'onKernelRequest'), 128);
  262. $instance->addListenerService('kernel.response', array(0 => 'profiler_listener', 1 => 'onKernelResponse'), -100);
  263. $instance->addListenerService('kernel.exception', array(0 => 'profiler_listener', 1 => 'onKernelException'), 0);
  264. $instance->addListenerService('kernel.request', array(0 => 'profiler_listener', 1 => 'onKernelRequest'), 1024);
  265. $instance->addListenerService('kernel.controller', array(0 => 'data_collector.request', 1 => 'onKernelController'), 0);
  266. $instance->addListenerService('kernel.request', array(0 => 'security.firewall', 1 => 'onKernelRequest'), 64);
  267. $instance->addListenerService('kernel.response', array(0 => 'security.rememberme.response_listener', 1 => 'onKernelResponse'), 0);
  268. $instance->addListenerService('kernel.exception', array(0 => 'twig.exception_listener', 1 => 'onKernelException'), -128);
  269. $instance->addListenerService('kernel.response', array(0 => 'monolog.handler.firephp', 1 => 'onKernelResponse'), 0);
  270. $instance->addListenerService('kernel.request', array(0 => 'assetic.request_listener', 1 => 'onKernelRequest'), 0);
  271. $instance->addListenerService('kernel.controller', array(0 => 'sensio_framework_extra.controller.listener', 1 => 'onKernelController'), 0);
  272. $instance->addListenerService('kernel.controller', array(0 => 'sensio_framework_extra.converter.listener', 1 => 'onKernelController'), 0);
  273. $instance->addListenerService('kernel.controller', array(0 => 'sensio_framework_extra.view.listener', 1 => 'onKernelController'), 0);
  274. $instance->addListenerService('kernel.view', array(0 => 'sensio_framework_extra.view.listener', 1 => 'onKernelView'), 0);
  275. $instance->addListenerService('kernel.response', array(0 => 'sensio_framework_extra.cache.listener', 1 => 'onKernelResponse'), 0);
  276. $instance->addListenerService('kernel.controller', array(0 => 'security.extra.controller_listener', 1 => 'onCoreController'), -255);
  277. $instance->addListenerService('kernel.controller', array(0 => 'acme.demo.listener', 1 => 'onKernelController'), 0);
  278. $instance->addListenerService('kernel.response', array(0 => 'web_profiler.debug_toolbar', 1 => 'onKernelResponse'), -128);
  279. return $instance;
  280. }
  281. /**
  282. * Gets the 'file_locator' service.
  283. *
  284. * This service is shared.
  285. * This method always returns the same instance of the service.
  286. *
  287. * @return Symfony\Component\HttpKernel\Config\FileLocator A Symfony\Component\HttpKernel\Config\FileLocator instance.
  288. */
  289. protected function getFileLocatorService()
  290. {
  291. return $this->services['file_locator'] = new \Symfony\Component\HttpKernel\Config\FileLocator($this->get('kernel'), '/Users/lenybernard/Workspace/labo/anakin/app/Resources');
  292. }
  293. /**
  294. * Gets the 'filesystem' service.
  295. *
  296. * This service is shared.
  297. * This method always returns the same instance of the service.
  298. *
  299. * @return Symfony\Component\Filesystem\Filesystem A Symfony\Component\Filesystem\Filesystem instance.
  300. */
  301. protected function getFilesystemService()
  302. {
  303. return $this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem();
  304. }
  305. /**
  306. * Gets the 'form.csrf_provider' service.
  307. *
  308. * This service is shared.
  309. * This method always returns the same instance of the service.
  310. *
  311. * @return Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider A Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider instance.
  312. */
  313. protected function getForm_CsrfProviderService()
  314. {
  315. return $this->services['form.csrf_provider'] = new \Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider($this->get('session'), 'ThisTokenIsNotSoSecretChangeIt');
  316. }
  317. /**
  318. * Gets the 'form.factory' service.
  319. *
  320. * This service is shared.
  321. * This method always returns the same instance of the service.
  322. *
  323. * @return Symfony\Component\Form\FormFactory A Symfony\Component\Form\FormFactory instance.
  324. */
  325. protected function getForm_FactoryService()
  326. {
  327. return $this->services['form.factory'] = new \Symfony\Component\Form\FormFactory(array(0 => new \Symfony\Component\Form\Extension\DependencyInjection\DependencyInjectionExtension($this, array('field' => 'form.type.field', 'form' => 'form.type.form', 'birthday' => 'form.type.birthday', 'checkbox' => 'form.type.checkbox', 'choice' => 'form.type.choice', 'collection' => 'form.type.collection', 'country' => 'form.type.country', 'date' => 'form.type.date', 'datetime' => 'form.type.datetime', 'email' => 'form.type.email', 'file' => 'form.type.file', 'hidden' => 'form.type.hidden', 'integer' => 'form.type.integer', 'language' => 'form.type.language', 'locale' => 'form.type.locale', 'money' => 'form.type.money', 'number' => 'form.type.number', 'password' => 'form.type.password', 'percent' => 'form.type.percent', 'radio' => 'form.type.radio', 'repeated' => 'form.type.repeated', 'search' => 'form.type.search', 'textarea' => 'form.type.textarea', 'text' => 'form.type.text', 'time' => 'form.type.time', 'timezone' => 'form.type.timezone', 'url' => 'form.type.url', 'csrf' => 'form.type.csrf', 'entity' => 'form.type.entity'), array('field' => array(0 => 'form.type_extension.field'), 'form' => array(0 => 'form.type_extension.csrf')), array(0 => 'form.type_guesser.validator', 1 => 'form.type_guesser.doctrine'))));
  328. }
  329. /**
  330. * Gets the 'form.type.birthday' service.
  331. *
  332. * This service is shared.
  333. * This method always returns the same instance of the service.
  334. *
  335. * @return Symfony\Component\Form\Extension\Core\Type\BirthdayType A Symfony\Component\Form\Extension\Core\Type\BirthdayType instance.
  336. */
  337. protected function getForm_Type_BirthdayService()
  338. {
  339. return $this->services['form.type.birthday'] = new \Symfony\Component\Form\Extension\Core\Type\BirthdayType();
  340. }
  341. /**
  342. * Gets the 'form.type.checkbox' service.
  343. *
  344. * This service is shared.
  345. * This method always returns the same instance of the service.
  346. *
  347. * @return Symfony\Component\Form\Extension\Core\Type\CheckboxType A Symfony\Component\Form\Extension\Core\Type\CheckboxType instance.
  348. */
  349. protected function getForm_Type_CheckboxService()
  350. {
  351. return $this->services['form.type.checkbox'] = new \Symfony\Component\Form\Extension\Core\Type\CheckboxType();
  352. }
  353. /**
  354. * Gets the 'form.type.choice' service.
  355. *
  356. * This service is shared.
  357. * This method always returns the same instance of the service.
  358. *
  359. * @return Symfony\Component\Form\Extension\Core\Type\ChoiceType A Symfony\Component\Form\Extension\Core\Type\ChoiceType instance.
  360. */
  361. protected function getForm_Type_ChoiceService()
  362. {
  363. return $this->services['form.type.choice'] = new \Symfony\Component\Form\Extension\Core\Type\ChoiceType();
  364. }
  365. /**
  366. * Gets the 'form.type.collection' service.
  367. *
  368. * This service is shared.
  369. * This method always returns the same instance of the service.
  370. *
  371. * @return Symfony\Component\Form\Extension\Core\Type\CollectionType A Symfony\Component\Form\Extension\Core\Type\CollectionType instance.
  372. */
  373. protected function getForm_Type_CollectionService()
  374. {
  375. return $this->services['form.type.collection'] = new \Symfony\Component\Form\Extension\Core\Type\CollectionType();
  376. }
  377. /**
  378. * Gets the 'form.type.country' service.
  379. *
  380. * This service is shared.
  381. * This method always returns the same instance of the service.
  382. *
  383. * @return Symfony\Component\Form\Extension\Core\Type\CountryType A Symfony\Component\Form\Extension\Core\Type\CountryType instance.
  384. */
  385. protected function getForm_Type_CountryService()
  386. {
  387. return $this->services['form.type.country'] = new \Symfony\Component\Form\Extension\Core\Type\CountryType();
  388. }
  389. /**
  390. * Gets the 'form.type.csrf' service.
  391. *
  392. * This service is shared.
  393. * This method always returns the same instance of the service.
  394. *
  395. * @return Symfony\Component\Form\Extension\Csrf\Type\CsrfType A Symfony\Component\Form\Extension\Csrf\Type\CsrfType instance.
  396. */
  397. protected function getForm_Type_CsrfService()
  398. {
  399. return $this->services['form.type.csrf'] = new \Symfony\Component\Form\Extension\Csrf\Type\CsrfType($this->get('form.csrf_provider'));
  400. }
  401. /**
  402. * Gets the 'form.type.date' service.
  403. *
  404. * This service is shared.
  405. * This method always returns the same instance of the service.
  406. *
  407. * @return Symfony\Component\Form\Extension\Core\Type\DateType A Symfony\Component\Form\Extension\Core\Type\DateType instance.
  408. */
  409. protected function getForm_Type_DateService()
  410. {
  411. return $this->services['form.type.date'] = new \Symfony\Component\Form\Extension\Core\Type\DateType();
  412. }
  413. /**
  414. * Gets the 'form.type.datetime' service.
  415. *
  416. * This service is shared.
  417. * This method always returns the same instance of the service.
  418. *
  419. * @return Symfony\Component\Form\Extension\Core\Type\DateTimeType A Symfony\Component\Form\Extension\Core\Type\DateTimeType instance.
  420. */
  421. protected function getForm_Type_DatetimeService()
  422. {
  423. return $this->services['form.type.datetime'] = new \Symfony\Component\Form\Extension\Core\Type\DateTimeType();
  424. }
  425. /**
  426. * Gets the 'form.type.email' service.
  427. *
  428. * This service is shared.
  429. * This method always returns the same instance of the service.
  430. *
  431. * @return Symfony\Component\Form\Extension\Core\Type\EmailType A Symfony\Component\Form\Extension\Core\Type\EmailType instance.
  432. */
  433. protected function getForm_Type_EmailService()
  434. {
  435. return $this->services['form.type.email'] = new \Symfony\Component\Form\Extension\Core\Type\EmailType();
  436. }
  437. /**
  438. * Gets the 'form.type.entity' service.
  439. *
  440. * This service is shared.
  441. * This method always returns the same instance of the service.
  442. *
  443. * @return Symfony\Bridge\Doctrine\Form\Type\EntityType A Symfony\Bridge\Doctrine\Form\Type\EntityType instance.
  444. */
  445. protected function getForm_Type_EntityService()
  446. {
  447. return $this->services['form.type.entity'] = new \Symfony\Bridge\Doctrine\Form\Type\EntityType($this->get('doctrine'));
  448. }
  449. /**
  450. * Gets the 'form.type.field' service.
  451. *
  452. * This service is shared.
  453. * This method always returns the same instance of the service.
  454. *
  455. * @return Symfony\Component\Form\Extension\Core\Type\FieldType A Symfony\Component\Form\Extension\Core\Type\FieldType instance.
  456. */
  457. protected function getForm_Type_FieldService()
  458. {
  459. return $this->services['form.type.field'] = new \Symfony\Component\Form\Extension\Core\Type\FieldType($this->get('validator'));
  460. }
  461. /**
  462. * Gets the 'form.type.file' service.
  463. *
  464. * This service is shared.
  465. * This method always returns the same instance of the service.
  466. *
  467. * @return Symfony\Component\Form\Extension\Core\Type\FileType A Symfony\Component\Form\Extension\Core\Type\FileType instance.
  468. */
  469. protected function getForm_Type_FileService()
  470. {
  471. return $this->services['form.type.file'] = new \Symfony\Component\Form\Extension\Core\Type\FileType();
  472. }
  473. /**
  474. * Gets the 'form.type.form' service.
  475. *
  476. * This service is shared.
  477. * This method always returns the same instance of the service.
  478. *
  479. * @return Symfony\Component\Form\Extension\Core\Type\FormType A Symfony\Component\Form\Extension\Core\Type\FormType instance.
  480. */
  481. protected function getForm_Type_FormService()
  482. {
  483. return $this->services['form.type.form'] = new \Symfony\Component\Form\Extension\Core\Type\FormType();
  484. }
  485. /**
  486. * Gets the 'form.type.hidden' service.
  487. *
  488. * This service is shared.
  489. * This method always returns the same instance of the service.
  490. *
  491. * @return Symfony\Component\Form\Extension\Core\Type\HiddenType A Symfony\Component\Form\Extension\Core\Type\HiddenType instance.
  492. */
  493. protected function getForm_Type_HiddenService()
  494. {
  495. return $this->services['form.type.hidden'] = new \Symfony\Component\Form\Extension\Core\Type\HiddenType();
  496. }
  497. /**
  498. * Gets the 'form.type.integer' service.
  499. *
  500. * This service is shared.
  501. * This method always returns the same instance of the service.
  502. *
  503. * @return Symfony\Component\Form\Extension\Core\Type\IntegerType A Symfony\Component\Form\Extension\Core\Type\IntegerType instance.
  504. */
  505. protected function getForm_Type_IntegerService()
  506. {
  507. return $this->services['form.type.integer'] = new \Symfony\Component\Form\Extension\Core\Type\IntegerType();
  508. }
  509. /**
  510. * Gets the 'form.type.language' service.
  511. *
  512. * This service is shared.
  513. * This method always returns the same instance of the service.
  514. *
  515. * @return Symfony\Component\Form\Extension\Core\Type\LanguageType A Symfony\Component\Form\Extension\Core\Type\LanguageType instance.
  516. */
  517. protected function getForm_Type_LanguageService()
  518. {
  519. return $this->services['form.type.language'] = new \Symfony\Component\Form\Extension\Core\Type\LanguageType();
  520. }
  521. /**
  522. * Gets the 'form.type.locale' service.
  523. *
  524. * This service is shared.
  525. * This method always returns the same instance of the service.
  526. *
  527. * @return Symfony\Component\Form\Extension\Core\Type\LocaleType A Symfony\Component\Form\Extension\Core\Type\LocaleType instance.
  528. */
  529. protected function getForm_Type_LocaleService()
  530. {
  531. return $this->services['form.type.locale'] = new \Symfony\Component\Form\Extension\Core\Type\LocaleType();
  532. }
  533. /**
  534. * Gets the 'form.type.money' service.
  535. *
  536. * This service is shared.
  537. * This method always returns the same instance of the service.
  538. *
  539. * @return Symfony\Component\Form\Extension\Core\Type\MoneyType A Symfony\Component\Form\Extension\Core\Type\MoneyType instance.
  540. */
  541. protected function getForm_Type_MoneyService()
  542. {
  543. return $this->services['form.type.money'] = new \Symfony\Component\Form\Extension\Core\Type\MoneyType();
  544. }
  545. /**
  546. * Gets the 'form.type.number' service.
  547. *
  548. * This service is shared.
  549. * This method always returns the same instance of the service.
  550. *
  551. * @return Symfony\Component\Form\Extension\Core\Type\NumberType A Symfony\Component\Form\Extension\Core\Type\NumberType instance.
  552. */
  553. protected function getForm_Type_NumberService()
  554. {
  555. return $this->services['form.type.number'] = new \Symfony\Component\Form\Extension\Core\Type\NumberType();
  556. }
  557. /**
  558. * Gets the 'form.type.password' service.
  559. *
  560. * This service is shared.
  561. * This method always returns the same instance of the service.
  562. *
  563. * @return Symfony\Component\Form\Extension\Core\Type\PasswordType A Symfony\Component\Form\Extension\Core\Type\PasswordType instance.
  564. */
  565. protected function getForm_Type_PasswordService()
  566. {
  567. return $this->services['form.type.password'] = new \Symfony\Component\Form\Extension\Core\Type\PasswordType();
  568. }
  569. /**
  570. * Gets the 'form.type.percent' service.
  571. *
  572. * This service is shared.
  573. * This method always returns the same instance of the service.
  574. *
  575. * @return Symfony\Component\Form\Extension\Core\Type\PercentType A Symfony\Component\Form\Extension\Core\Type\PercentType instance.
  576. */
  577. protected function getForm_Type_PercentService()
  578. {
  579. return $this->services['form.type.percent'] = new \Symfony\Component\Form\Extension\Core\Type\PercentType();
  580. }
  581. /**
  582. * Gets the 'form.type.radio' service.
  583. *
  584. * This service is shared.
  585. * This method always returns the same instance of the service.
  586. *
  587. * @return Symfony\Component\Form\Extension\Core\Type\RadioType A Symfony\Component\Form\Extension\Core\Type\RadioType instance.
  588. */
  589. protected function getForm_Type_RadioService()
  590. {
  591. return $this->services['form.type.radio'] = new \Symfony\Component\Form\Extension\Core\Type\RadioType();
  592. }
  593. /**
  594. * Gets the 'form.type.repeated' service.
  595. *
  596. * This service is shared.
  597. * This method always returns the same instance of the service.
  598. *
  599. * @return Symfony\Component\Form\Extension\Core\Type\RepeatedType A Symfony\Component\Form\Extension\Core\Type\RepeatedType instance.
  600. */
  601. protected function getForm_Type_RepeatedService()
  602. {
  603. return $this->services['form.type.repeated'] = new \Symfony\Component\Form\Extension\Core\Type\RepeatedType();
  604. }
  605. /**
  606. * Gets the 'form.type.search' service.
  607. *
  608. * This service is shared.
  609. * This method always returns the same instance of the service.
  610. *
  611. * @return Symfony\Component\Form\Extension\Core\Type\SearchType A Symfony\Component\Form\Extension\Core\Type\SearchType instance.
  612. */
  613. protected function getForm_Type_SearchService()
  614. {
  615. return $this->services['form.type.search'] = new \Symfony\Component\Form\Extension\Core\Type\SearchType();
  616. }
  617. /**
  618. * Gets the 'form.type.text' service.
  619. *
  620. * This service is shared.
  621. * This method always returns the same instance of the service.
  622. *
  623. * @return Symfony\Component\Form\Extension\Core\Type\TextType A Symfony\Component\Form\Extension\Core\Type\TextType instance.
  624. */
  625. protected function getForm_Type_TextService()
  626. {
  627. return $this->services['form.type.text'] = new \Symfony\Component\Form\Extension\Core\Type\TextType();
  628. }
  629. /**
  630. * Gets the 'form.type.textarea' service.
  631. *
  632. * This service is shared.
  633. * This method always returns the same instance of the service.
  634. *
  635. * @return Symfony\Component\Form\Extension\Core\Type\TextareaType A Symfony\Component\Form\Extension\Core\Type\TextareaType instance.
  636. */
  637. protected function getForm_Type_TextareaService()
  638. {
  639. return $this->services['form.type.textarea'] = new \Symfony\Component\Form\Extension\Core\Type\TextareaType();
  640. }
  641. /**
  642. * Gets the 'form.type.time' service.
  643. *
  644. * This service is shared.
  645. * This method always returns the same instance of the service.
  646. *
  647. * @return Symfony\Component\Form\Extension\Core\Type\TimeType A Symfony\Component\Form\Extension\Core\Type\TimeType instance.
  648. */
  649. protected function getForm_Type_TimeService()
  650. {
  651. return $this->services['form.type.time'] = new \Symfony\Component\Form\Extension\Core\Type\TimeType();
  652. }
  653. /**
  654. * Gets the 'form.type.timezone' service.
  655. *
  656. * This service is shared.
  657. * This method always returns the same instance of the service.
  658. *
  659. * @return Symfony\Component\Form\Extension\Core\Type\TimezoneType A Symfony\Component\Form\Extension\Core\Type\TimezoneType instance.
  660. */
  661. protected function getForm_Type_TimezoneService()
  662. {
  663. return $this->services['form.type.timezone'] = new \Symfony\Component\Form\Extension\Core\Type\TimezoneType();
  664. }
  665. /**
  666. * Gets the 'form.type.url' service.
  667. *
  668. * This service is shared.
  669. * This method always returns the same instance of the service.
  670. *
  671. * @return Symfony\Component\Form\Extension\Core\Type\UrlType A Symfony\Component\Form\Extension\Core\Type\UrlType instance.
  672. */
  673. protected function getForm_Type_UrlService()
  674. {
  675. return $this->services['form.type.url'] = new \Symfony\Component\Form\Extension\Core\Type\UrlType();
  676. }
  677. /**
  678. * Gets the 'form.type_extension.csrf' service.
  679. *
  680. * This service is shared.
  681. * This method always returns the same instance of the service.
  682. *
  683. * @return Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension A Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension instance.
  684. */
  685. protected function getForm_TypeExtension_CsrfService()
  686. {
  687. return $this->services['form.type_extension.csrf'] = new \Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension(true, '_token');
  688. }
  689. /**
  690. * Gets the 'form.type_extension.field' service.
  691. *
  692. * This service is shared.
  693. * This method always returns the same instance of the service.
  694. *
  695. * @return Symfony\Component\Form\Extension\Validator\Type\FieldTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\FieldTypeValidatorExtension instance.
  696. */
  697. protected function getForm_TypeExtension_FieldService()
  698. {
  699. return $this->services['form.type_extension.field'] = new \Symfony\Component\Form\Extension\Validator\Type\FieldTypeValidatorExtension($this->get('validator'));
  700. }
  701. /**
  702. * Gets the 'form.type_guesser.doctrine' service.
  703. *
  704. * This service is shared.
  705. * This method always returns the same instance of the service.
  706. *
  707. * @return Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser A Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser instance.
  708. */
  709. protected function getForm_TypeGuesser_DoctrineService()
  710. {
  711. return $this->services['form.type_guesser.doctrine'] = new \Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser($this->get('doctrine'));
  712. }
  713. /**
  714. * Gets the 'form.type_guesser.validator' service.
  715. *
  716. * This service is shared.
  717. * This method always returns the same instance of the service.
  718. *
  719. * @return Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser A Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser instance.
  720. */
  721. protected function getForm_TypeGuesser_ValidatorService()
  722. {
  723. return $this->services['form.type_guesser.validator'] = new \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser($this->get('validator.mapping.class_metadata_factory'));
  724. }
  725. /**
  726. * Gets the 'http_kernel' service.
  727. *
  728. * This service is shared.
  729. * This method always returns the same instance of the service.
  730. *
  731. * @return Symfony\Bundle\FrameworkBundle\HttpKernel A Symfony\Bundle\FrameworkBundle\HttpKernel instance.
  732. */
  733. protected function getHttpKernelService()
  734. {
  735. return $this->services['http_kernel'] = new \Symfony\Bundle\FrameworkBundle\HttpKernel($this->get('event_dispatcher'), $this, new \Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver($this, $this->get('controller_name_converter'), $this->get('monolog.logger.request')));
  736. }
  737. /**
  738. * Gets the 'kernel' service.
  739. *
  740. * This service is shared.
  741. * This method always returns the same instance of the service.
  742. *
  743. * @throws \RuntimeException always since this service is expected to be injected dynamically
  744. */
  745. protected function getKernelService()
  746. {
  747. throw new \RuntimeException('You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.');
  748. }
  749. /**
  750. * Gets the 'logger' service.
  751. *
  752. * This service is shared.
  753. * This method always returns the same instance of the service.
  754. *
  755. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  756. */
  757. protected function getLoggerService()
  758. {
  759. $this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('app');
  760. $instance->pushHandler($this->get('monolog.handler.main'));
  761. $instance->pushHandler($this->get('monolog.handler.firephp'));
  762. $instance->pushHandler($this->get('monolog.handler.debug'));
  763. return $instance;
  764. }
  765. /**
  766. * Gets the 'mailer' service.
  767. *
  768. * This service is shared.
  769. * This method always returns the same instance of the service.
  770. *
  771. * @return Swift_Mailer A Swift_Mailer instance.
  772. */
  773. protected function getMailerService()
  774. {
  775. return $this->services['mailer'] = new \Swift_Mailer($this->get('swiftmailer.transport'));
  776. }
  777. /**
  778. * Gets the 'monolog.handler.debug' service.
  779. *
  780. * This service is shared.
  781. * This method always returns the same instance of the service.
  782. *
  783. * @return Symfony\Bridge\Monolog\Handler\DebugHandler A Symfony\Bridge\Monolog\Handler\DebugHandler instance.
  784. */
  785. protected function getMonolog_Handler_DebugService()
  786. {
  787. return $this->services['monolog.handler.debug'] = new \Symfony\Bridge\Monolog\Handler\DebugHandler(100, true);
  788. }
  789. /**
  790. * Gets the 'monolog.handler.firephp' service.
  791. *
  792. * This service is shared.
  793. * This method always returns the same instance of the service.
  794. *
  795. * @return Symfony\Bridge\Monolog\Handler\FirePHPHandler A Symfony\Bridge\Monolog\Handler\FirePHPHandler instance.
  796. */
  797. protected function getMonolog_Handler_FirephpService()
  798. {
  799. return $this->services['monolog.handler.firephp'] = new \Symfony\Bridge\Monolog\Handler\FirePHPHandler(200, true);
  800. }
  801. /**
  802. * Gets the 'monolog.handler.main' service.
  803. *
  804. * This service is shared.
  805. * This method always returns the same instance of the service.
  806. *
  807. * @return Monolog\Handler\StreamHandler A Monolog\Handler\StreamHandler instance.
  808. */
  809. protected function getMonolog_Handler_MainService()
  810. {
  811. return $this->services['monolog.handler.main'] = new \Monolog\Handler\StreamHandler('/Users/lenybernard/Workspace/labo/anakin/app/logs/dev.log', 100, true);
  812. }
  813. /**
  814. * Gets the 'monolog.logger.doctrine' service.
  815. *
  816. * This service is shared.
  817. * This method always returns the same instance of the service.
  818. *
  819. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  820. */
  821. protected function getMonolog_Logger_DoctrineService()
  822. {
  823. $this->services['monolog.logger.doctrine'] = $instance = new \Symfony\Bridge\Monolog\Logger('doctrine');
  824. $instance->pushHandler($this->get('monolog.handler.main'));
  825. $instance->pushHandler($this->get('monolog.handler.firephp'));
  826. $instance->pushHandler($this->get('monolog.handler.debug'));
  827. return $instance;
  828. }
  829. /**
  830. * Gets the 'monolog.logger.event' service.
  831. *
  832. * This service is shared.
  833. * This method always returns the same instance of the service.
  834. *
  835. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  836. */
  837. protected function getMonolog_Logger_EventService()
  838. {
  839. $this->services['monolog.logger.event'] = $instance = new \Symfony\Bridge\Monolog\Logger('event');
  840. $instance->pushHandler($this->get('monolog.handler.main'));
  841. $instance->pushHandler($this->get('monolog.handler.firephp'));
  842. $instance->pushHandler($this->get('monolog.handler.debug'));
  843. return $instance;
  844. }
  845. /**
  846. * Gets the 'monolog.logger.profiler' service.
  847. *
  848. * This service is shared.
  849. * This method always returns the same instance of the service.
  850. *
  851. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  852. */
  853. protected function getMonolog_Logger_ProfilerService()
  854. {
  855. $this->services['monolog.logger.profiler'] = $instance = new \Symfony\Bridge\Monolog\Logger('profiler');
  856. $instance->pushHandler($this->get('monolog.handler.main'));
  857. $instance->pushHandler($this->get('monolog.handler.firephp'));
  858. $instance->pushHandler($this->get('monolog.handler.debug'));
  859. return $instance;
  860. }
  861. /**
  862. * Gets the 'monolog.logger.request' service.
  863. *
  864. * This service is shared.
  865. * This method always returns the same instance of the service.
  866. *
  867. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  868. */
  869. protected function getMonolog_Logger_RequestService()
  870. {
  871. $this->services['monolog.logger.request'] = $instance = new \Symfony\Bridge\Monolog\Logger('request');
  872. $instance->pushHandler($this->get('monolog.handler.main'));
  873. $instance->pushHandler($this->get('monolog.handler.firephp'));
  874. $instance->pushHandler($this->get('monolog.handler.debug'));
  875. return $instance;
  876. }
  877. /**
  878. * Gets the 'monolog.logger.router' service.
  879. *
  880. * This service is shared.
  881. * This method always returns the same instance of the service.
  882. *
  883. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  884. */
  885. protected function getMonolog_Logger_RouterService()
  886. {
  887. $this->services['monolog.logger.router'] = $instance = new \Symfony\Bridge\Monolog\Logger('router');
  888. $instance->pushHandler($this->get('monolog.handler.main'));
  889. $instance->pushHandler($this->get('monolog.handler.firephp'));
  890. $instance->pushHandler($this->get('monolog.handler.debug'));
  891. return $instance;
  892. }
  893. /**
  894. * Gets the 'monolog.logger.security' service.
  895. *
  896. * This service is shared.
  897. * This method always returns the same instance of the service.
  898. *
  899. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  900. */
  901. protected function getMonolog_Logger_SecurityService()
  902. {
  903. $this->services['monolog.logger.security'] = $instance = new \Symfony\Bridge\Monolog\Logger('security');
  904. $instance->pushHandler($this->get('monolog.handler.main'));
  905. $instance->pushHandler($this->get('monolog.handler.firephp'));
  906. $instance->pushHandler($this->get('monolog.handler.debug'));
  907. return $instance;
  908. }
  909. /**
  910. * Gets the 'monolog.logger.templating' service.
  911. *
  912. * This service is shared.
  913. * This method always returns the same instance of the service.
  914. *
  915. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  916. */
  917. protected function getMonolog_Logger_TemplatingService()

Large files files are truncated, but you can click here to view the full file