/app/cache/dev/appDevDebugProjectContainer.php

https://github.com/modernfidelity/Symfony2-RESTAPI · PHP · 3803 lines · 1731 code · 333 blank · 1739 comment · 6 complexity · 773613f846590ff5037118b6712d187b MD5 · raw file

Large files are truncated 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\Exception\InvalidArgumentException;
  6. use Symfony\Component\DependencyInjection\Exception\LogicException;
  7. use Symfony\Component\DependencyInjection\Exception\RuntimeException;
  8. use Symfony\Component\DependencyInjection\Reference;
  9. use Symfony\Component\DependencyInjection\Parameter;
  10. use Symfony\Component\DependencyInjection\ParameterBag\FrozenParameterBag;
  11. /**
  12. * appDevDebugProjectContainer
  13. *
  14. * This class has been auto-generated
  15. * by the Symfony Dependency Injection Component.
  16. */
  17. class appDevDebugProjectContainer extends Container
  18. {
  19. /**
  20. * Constructor.
  21. */
  22. public function __construct()
  23. {
  24. $this->parameters = $this->getDefaultParameters();
  25. $this->services =
  26. $this->scopedServices =
  27. $this->scopeStacks = array();
  28. $this->set('service_container', $this);
  29. $this->scopes = array('request' => 'container');
  30. $this->scopeChildren = array('request' => array());
  31. }
  32. /**
  33. * Gets the 'acme.demo.listener' service.
  34. *
  35. * This service is shared.
  36. * This method always returns the same instance of the service.
  37. *
  38. * @return Acme\DemoBundle\EventListener\ControllerListener A Acme\DemoBundle\EventListener\ControllerListener instance.
  39. */
  40. protected function getAcme_Demo_ListenerService()
  41. {
  42. return $this->services['acme.demo.listener'] = new \Acme\DemoBundle\EventListener\ControllerListener($this->get('twig.extension.acme.demo'));
  43. }
  44. /**
  45. * Gets the 'annotation_reader' service.
  46. *
  47. * This service is shared.
  48. * This method always returns the same instance of the service.
  49. *
  50. * @return Doctrine\Common\Annotations\FileCacheReader A Doctrine\Common\Annotations\FileCacheReader instance.
  51. */
  52. protected function getAnnotationReaderService()
  53. {
  54. return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\FileCacheReader(new \Doctrine\Common\Annotations\AnnotationReader(), '/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/cache/dev/annotations', true);
  55. }
  56. /**
  57. * Gets the 'assetic.asset_manager' service.
  58. *
  59. * This service is shared.
  60. * This method always returns the same instance of the service.
  61. *
  62. * @return Assetic\Factory\LazyAssetManager A Assetic\Factory\LazyAssetManager instance.
  63. */
  64. protected function getAssetic_AssetManagerService()
  65. {
  66. $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('/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/cache/dev/assetic/config'), true)));
  67. $instance->addResource(new \Symfony\Bundle\AsseticBundle\Factory\Resource\DirectoryResource($this->get('templating.loader'), '', '/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/Resources/views', '/\\.[^.]+\\.twig$/'), 'twig');
  68. return $instance;
  69. }
  70. /**
  71. * Gets the 'assetic.controller' service.
  72. *
  73. * @return Symfony\Bundle\AsseticBundle\Controller\AsseticController A Symfony\Bundle\AsseticBundle\Controller\AsseticController instance.
  74. */
  75. protected function getAssetic_ControllerService()
  76. {
  77. $instance = new \Symfony\Bundle\AsseticBundle\Controller\AsseticController($this->get('request'), $this->get('assetic.asset_manager'), $this->get('assetic.cache'), false, $this->get('profiler'));
  78. $instance->setValueSupplier($this->get('assetic.value_supplier.default'));
  79. return $instance;
  80. }
  81. /**
  82. * Gets the 'assetic.filter.cssrewrite' service.
  83. *
  84. * This service is shared.
  85. * This method always returns the same instance of the service.
  86. *
  87. * @return Assetic\Filter\CssRewriteFilter A Assetic\Filter\CssRewriteFilter instance.
  88. */
  89. protected function getAssetic_Filter_CssrewriteService()
  90. {
  91. return $this->services['assetic.filter.cssrewrite'] = new \Assetic\Filter\CssRewriteFilter();
  92. }
  93. /**
  94. * Gets the 'assetic.filter_manager' service.
  95. *
  96. * This service is shared.
  97. * This method always returns the same instance of the service.
  98. *
  99. * @return Symfony\Bundle\AsseticBundle\FilterManager A Symfony\Bundle\AsseticBundle\FilterManager instance.
  100. */
  101. protected function getAssetic_FilterManagerService()
  102. {
  103. return $this->services['assetic.filter_manager'] = new \Symfony\Bundle\AsseticBundle\FilterManager($this, array('cssrewrite' => 'assetic.filter.cssrewrite'));
  104. }
  105. /**
  106. * Gets the 'assetic.request_listener' service.
  107. *
  108. * This service is shared.
  109. * This method always returns the same instance of the service.
  110. *
  111. * @return Symfony\Bundle\AsseticBundle\EventListener\RequestListener A Symfony\Bundle\AsseticBundle\EventListener\RequestListener instance.
  112. */
  113. protected function getAssetic_RequestListenerService()
  114. {
  115. return $this->services['assetic.request_listener'] = new \Symfony\Bundle\AsseticBundle\EventListener\RequestListener();
  116. }
  117. /**
  118. * Gets the 'cache_clearer' service.
  119. *
  120. * This service is shared.
  121. * This method always returns the same instance of the service.
  122. *
  123. * @return Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer A Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer instance.
  124. */
  125. protected function getCacheClearerService()
  126. {
  127. return $this->services['cache_clearer'] = new \Symfony\Component\HttpKernel\CacheClearer\ChainCacheClearer(array());
  128. }
  129. /**
  130. * Gets the 'cache_warmer' service.
  131. *
  132. * This service is shared.
  133. * This method always returns the same instance of the service.
  134. *
  135. * @return Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate A Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate instance.
  136. */
  137. protected function getCacheWarmerService()
  138. {
  139. $a = $this->get('kernel');
  140. $b = $this->get('templating.filename_parser');
  141. $c = new \Symfony\Bundle\FrameworkBundle\CacheWarmer\TemplateFinder($a, $b, '/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/Resources');
  142. 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')), 5 => new \JMS\DiExtraBundle\HttpKernel\ControllerInjectorsWarmer($a, $this->get('jms_di_extra.controller_resolver'), array())));
  143. }
  144. /**
  145. * Gets the 'data_collector.request' service.
  146. *
  147. * This service is shared.
  148. * This method always returns the same instance of the service.
  149. *
  150. * @return Symfony\Component\HttpKernel\DataCollector\RequestDataCollector A Symfony\Component\HttpKernel\DataCollector\RequestDataCollector instance.
  151. */
  152. protected function getDataCollector_RequestService()
  153. {
  154. return $this->services['data_collector.request'] = new \Symfony\Component\HttpKernel\DataCollector\RequestDataCollector();
  155. }
  156. /**
  157. * Gets the 'data_collector.router' service.
  158. *
  159. * This service is shared.
  160. * This method always returns the same instance of the service.
  161. *
  162. * @return Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector A Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector instance.
  163. */
  164. protected function getDataCollector_RouterService()
  165. {
  166. return $this->services['data_collector.router'] = new \Symfony\Bundle\FrameworkBundle\DataCollector\RouterDataCollector();
  167. }
  168. /**
  169. * Gets the 'debug.controller_resolver' service.
  170. *
  171. * This service is shared.
  172. * This method always returns the same instance of the service.
  173. *
  174. * @return Symfony\Component\HttpKernel\Controller\TraceableControllerResolver A Symfony\Component\HttpKernel\Controller\TraceableControllerResolver instance.
  175. */
  176. protected function getDebug_ControllerResolverService()
  177. {
  178. return $this->services['debug.controller_resolver'] = new \Symfony\Component\HttpKernel\Controller\TraceableControllerResolver($this->get('jms_di_extra.controller_resolver'), $this->get('debug.stopwatch'));
  179. }
  180. /**
  181. * Gets the 'debug.deprecation_logger_listener' service.
  182. *
  183. * This service is shared.
  184. * This method always returns the same instance of the service.
  185. *
  186. * @return Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener A Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener instance.
  187. */
  188. protected function getDebug_DeprecationLoggerListenerService()
  189. {
  190. return $this->services['debug.deprecation_logger_listener'] = new \Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener($this->get('monolog.logger.deprecation'));
  191. }
  192. /**
  193. * Gets the 'debug.event_dispatcher' service.
  194. *
  195. * This service is shared.
  196. * This method always returns the same instance of the service.
  197. *
  198. * @return Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher A Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher instance.
  199. */
  200. protected function getDebug_EventDispatcherService()
  201. {
  202. $this->services['debug.event_dispatcher'] = $instance = new \Symfony\Component\HttpKernel\Debug\TraceableEventDispatcher($this->get('event_dispatcher'), $this->get('debug.stopwatch'), $this->get('monolog.logger.event'));
  203. $instance->setProfiler($this->get('profiler'));
  204. return $instance;
  205. }
  206. /**
  207. * Gets the 'debug.stopwatch' service.
  208. *
  209. * This service is shared.
  210. * This method always returns the same instance of the service.
  211. *
  212. * @return Symfony\Component\Stopwatch\Stopwatch A Symfony\Component\Stopwatch\Stopwatch instance.
  213. */
  214. protected function getDebug_StopwatchService()
  215. {
  216. return $this->services['debug.stopwatch'] = new \Symfony\Component\Stopwatch\Stopwatch();
  217. }
  218. /**
  219. * Gets the 'doctrine' service.
  220. *
  221. * This service is shared.
  222. * This method always returns the same instance of the service.
  223. *
  224. * @return Doctrine\Bundle\DoctrineBundle\Registry A Doctrine\Bundle\DoctrineBundle\Registry instance.
  225. */
  226. protected function getDoctrineService()
  227. {
  228. return $this->services['doctrine'] = new \Doctrine\Bundle\DoctrineBundle\Registry($this, array('default' => 'doctrine.dbal.default_connection'), array('default' => 'doctrine.orm.default_entity_manager'), 'default', 'default');
  229. }
  230. /**
  231. * Gets the 'doctrine.dbal.connection_factory' service.
  232. *
  233. * This service is shared.
  234. * This method always returns the same instance of the service.
  235. *
  236. * @return Doctrine\Bundle\DoctrineBundle\ConnectionFactory A Doctrine\Bundle\DoctrineBundle\ConnectionFactory instance.
  237. */
  238. protected function getDoctrine_Dbal_ConnectionFactoryService()
  239. {
  240. return $this->services['doctrine.dbal.connection_factory'] = new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory(array());
  241. }
  242. /**
  243. * Gets the 'doctrine.dbal.default_connection' service.
  244. *
  245. * This service is shared.
  246. * This method always returns the same instance of the service.
  247. *
  248. * @return stdClass A stdClass instance.
  249. */
  250. protected function getDoctrine_Dbal_DefaultConnectionService()
  251. {
  252. $a = new \Doctrine\DBAL\Logging\LoggerChain();
  253. $a->addLogger(new \Symfony\Bridge\Doctrine\Logger\DbalLogger($this->get('monolog.logger.doctrine'), $this->get('debug.stopwatch')));
  254. $a->addLogger($this->get('doctrine.dbal.logger.profiling.default'));
  255. $b = new \Doctrine\DBAL\Configuration();
  256. $b->setSQLLogger($a);
  257. return $this->services['doctrine.dbal.default_connection'] = $this->get('doctrine.dbal.connection_factory')->createConnection(array('dbname' => 'symfony_restapi', 'host' => '127.0.0.1', 'port' => NULL, 'user' => 'root', 'password' => 'root', 'charset' => 'UTF8', 'driver' => 'pdo_mysql', 'driverOptions' => array()), $b, new \Symfony\Bridge\Doctrine\ContainerAwareEventManager($this), array());
  258. }
  259. /**
  260. * Gets the 'doctrine.orm.default_entity_manager' service.
  261. *
  262. * This service is shared.
  263. * This method always returns the same instance of the service.
  264. *
  265. * @return EntityManager5162b07e2cbb0_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager A EntityManager5162b07e2cbb0_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager instance.
  266. */
  267. protected function getDoctrine_Orm_DefaultEntityManagerService()
  268. {
  269. require_once '/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/cache/dev/jms_diextra/doctrine/EntityManager_5162b07e2cbb0.php';
  270. $a = new \Doctrine\Common\Cache\ArrayCache();
  271. $a->setNamespace('sf2orm_default_e8dcc1ca5a3e0942b5b6b125373f9a34');
  272. $b = new \Doctrine\Common\Cache\ArrayCache();
  273. $b->setNamespace('sf2orm_default_e8dcc1ca5a3e0942b5b6b125373f9a34');
  274. $c = new \Doctrine\Common\Cache\ArrayCache();
  275. $c->setNamespace('sf2orm_default_e8dcc1ca5a3e0942b5b6b125373f9a34');
  276. $d = new \Doctrine\ORM\Configuration();
  277. $d->setEntityNamespaces(array());
  278. $d->setMetadataCacheImpl($a);
  279. $d->setQueryCacheImpl($b);
  280. $d->setResultCacheImpl($c);
  281. $d->setMetadataDriverImpl(new \Doctrine\ORM\Mapping\Driver\DriverChain());
  282. $d->setProxyDir('/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/cache/dev/doctrine/orm/Proxies');
  283. $d->setProxyNamespace('Proxies');
  284. $d->setAutoGenerateProxyClasses(true);
  285. $d->setClassMetadataFactoryName('Doctrine\\ORM\\Mapping\\ClassMetadataFactory');
  286. $d->setDefaultRepositoryClassName('Doctrine\\ORM\\EntityRepository');
  287. $d->setNamingStrategy(new \Doctrine\ORM\Mapping\DefaultNamingStrategy());
  288. $e = call_user_func(array('Doctrine\\ORM\\EntityManager', 'create'), $this->get('doctrine.dbal.default_connection'), $d);
  289. $this->get('doctrine.orm.default_manager_configurator')->configure($e);
  290. return $this->services['doctrine.orm.default_entity_manager'] = new \EntityManager5162b07e2cbb0_546a8d27f194334ee012bfe64f629947b07e4919\__CG__\Doctrine\ORM\EntityManager($e, $this);
  291. }
  292. /**
  293. * Gets the 'doctrine.orm.default_manager_configurator' service.
  294. *
  295. * This service is shared.
  296. * This method always returns the same instance of the service.
  297. *
  298. * @return Doctrine\Bundle\DoctrineBundle\ManagerConfigurator A Doctrine\Bundle\DoctrineBundle\ManagerConfigurator instance.
  299. */
  300. protected function getDoctrine_Orm_DefaultManagerConfiguratorService()
  301. {
  302. return $this->services['doctrine.orm.default_manager_configurator'] = new \Doctrine\Bundle\DoctrineBundle\ManagerConfigurator(array());
  303. }
  304. /**
  305. * Gets the 'doctrine.orm.validator.unique' service.
  306. *
  307. * This service is shared.
  308. * This method always returns the same instance of the service.
  309. *
  310. * @return Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator A Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator instance.
  311. */
  312. protected function getDoctrine_Orm_Validator_UniqueService()
  313. {
  314. return $this->services['doctrine.orm.validator.unique'] = new \Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntityValidator($this->get('doctrine'));
  315. }
  316. /**
  317. * Gets the 'doctrine.orm.validator_initializer' service.
  318. *
  319. * This service is shared.
  320. * This method always returns the same instance of the service.
  321. *
  322. * @return Symfony\Bridge\Doctrine\Validator\DoctrineInitializer A Symfony\Bridge\Doctrine\Validator\DoctrineInitializer instance.
  323. */
  324. protected function getDoctrine_Orm_ValidatorInitializerService()
  325. {
  326. return $this->services['doctrine.orm.validator_initializer'] = new \Symfony\Bridge\Doctrine\Validator\DoctrineInitializer($this->get('doctrine'));
  327. }
  328. /**
  329. * Gets the 'event_dispatcher' service.
  330. *
  331. * This service is shared.
  332. * This method always returns the same instance of the service.
  333. *
  334. * @return Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher A Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher instance.
  335. */
  336. protected function getEventDispatcherService()
  337. {
  338. $this->services['event_dispatcher'] = $instance = new \Symfony\Component\EventDispatcher\ContainerAwareEventDispatcher($this);
  339. $instance->addListenerService('kernel.controller', array(0 => 'data_collector.router', 1 => 'onKernelController'), 0);
  340. $instance->addListenerService('kernel.response', array(0 => 'monolog.handler.firephp', 1 => 'onKernelResponse'), 0);
  341. $instance->addListenerService('kernel.response', array(0 => 'monolog.handler.chromephp', 1 => 'onKernelResponse'), 0);
  342. $instance->addListenerService('kernel.request', array(0 => 'assetic.request_listener', 1 => 'onKernelRequest'), 0);
  343. $instance->addListenerService('kernel.controller', array(0 => 'sensio_framework_extra.controller.listener', 1 => 'onKernelController'), 0);
  344. $instance->addListenerService('kernel.controller', array(0 => 'sensio_framework_extra.converter.listener', 1 => 'onKernelController'), 0);
  345. $instance->addListenerService('kernel.controller', array(0 => 'sensio_framework_extra.view.listener', 1 => 'onKernelController'), 0);
  346. $instance->addListenerService('kernel.view', array(0 => 'sensio_framework_extra.view.listener', 1 => 'onKernelView'), 0);
  347. $instance->addListenerService('kernel.response', array(0 => 'sensio_framework_extra.cache.listener', 1 => 'onKernelResponse'), 0);
  348. $instance->addListenerService('kernel.controller', array(0 => 'acme.demo.listener', 1 => 'onKernelController'), 0);
  349. $instance->addSubscriberService('response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ResponseListener');
  350. $instance->addSubscriberService('streamed_response_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\StreamedResponseListener');
  351. $instance->addSubscriberService('locale_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\LocaleListener');
  352. $instance->addSubscriberService('fragment.handler', 'Symfony\\Component\\HttpKernel\\Fragment\\FragmentHandler');
  353. $instance->addSubscriberService('debug.deprecation_logger_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\DeprecationLoggerListener');
  354. $instance->addSubscriberService('session_listener', 'Symfony\\Bundle\\FrameworkBundle\\EventListener\\SessionListener');
  355. $instance->addSubscriberService('fragment.listener', 'Symfony\\Component\\HttpKernel\\EventListener\\FragmentListener');
  356. $instance->addSubscriberService('profiler_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ProfilerListener');
  357. $instance->addSubscriberService('data_collector.request', 'Symfony\\Component\\HttpKernel\\DataCollector\\RequestDataCollector');
  358. $instance->addSubscriberService('router_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\RouterListener');
  359. $instance->addSubscriberService('security.firewall', 'Symfony\\Component\\Security\\Http\\Firewall');
  360. $instance->addSubscriberService('security.rememberme.response_listener', 'Symfony\\Component\\Security\\Http\\RememberMe\\ResponseListener');
  361. $instance->addSubscriberService('twig.exception_listener', 'Symfony\\Component\\HttpKernel\\EventListener\\ExceptionListener');
  362. $instance->addSubscriberService('swiftmailer.email_sender.listener', 'Symfony\\Bundle\\SwiftmailerBundle\\EventListener\\EmailSenderListener');
  363. $instance->addSubscriberService('web_profiler.debug_toolbar', 'Symfony\\Bundle\\WebProfilerBundle\\EventListener\\WebDebugToolbarListener');
  364. return $instance;
  365. }
  366. /**
  367. * Gets the 'file_locator' service.
  368. *
  369. * This service is shared.
  370. * This method always returns the same instance of the service.
  371. *
  372. * @return Symfony\Component\HttpKernel\Config\FileLocator A Symfony\Component\HttpKernel\Config\FileLocator instance.
  373. */
  374. protected function getFileLocatorService()
  375. {
  376. return $this->services['file_locator'] = new \Symfony\Component\HttpKernel\Config\FileLocator($this->get('kernel'), '/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/Resources');
  377. }
  378. /**
  379. * Gets the 'filesystem' service.
  380. *
  381. * This service is shared.
  382. * This method always returns the same instance of the service.
  383. *
  384. * @return Symfony\Component\Filesystem\Filesystem A Symfony\Component\Filesystem\Filesystem instance.
  385. */
  386. protected function getFilesystemService()
  387. {
  388. return $this->services['filesystem'] = new \Symfony\Component\Filesystem\Filesystem();
  389. }
  390. /**
  391. * Gets the 'form.csrf_provider' service.
  392. *
  393. * This service is shared.
  394. * This method always returns the same instance of the service.
  395. *
  396. * @return Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider A Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider instance.
  397. */
  398. protected function getForm_CsrfProviderService()
  399. {
  400. return $this->services['form.csrf_provider'] = new \Symfony\Component\Form\Extension\Csrf\CsrfProvider\SessionCsrfProvider($this->get('session'), '2081aa2b4d77a2615e927205e0f702dd5a22a013');
  401. }
  402. /**
  403. * Gets the 'form.factory' service.
  404. *
  405. * This service is shared.
  406. * This method always returns the same instance of the service.
  407. *
  408. * @return Symfony\Component\Form\FormFactory A Symfony\Component\Form\FormFactory instance.
  409. */
  410. protected function getForm_FactoryService()
  411. {
  412. return $this->services['form.factory'] = new \Symfony\Component\Form\FormFactory($this->get('form.registry'), $this->get('form.resolved_type_factory'));
  413. }
  414. /**
  415. * Gets the 'form.registry' service.
  416. *
  417. * This service is shared.
  418. * This method always returns the same instance of the service.
  419. *
  420. * @return Symfony\Component\Form\FormRegistry A Symfony\Component\Form\FormRegistry instance.
  421. */
  422. protected function getForm_RegistryService()
  423. {
  424. return $this->services['form.registry'] = new \Symfony\Component\Form\FormRegistry(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', 'entity' => 'form.type.entity'), array('form' => array(0 => 'form.type_extension.form.http_foundation', 1 => 'form.type_extension.form.validator', 2 => 'form.type_extension.csrf'), 'repeated' => array(0 => 'form.type_extension.repeated.validator')), array(0 => 'form.type_guesser.validator', 1 => 'form.type_guesser.doctrine'))), $this->get('form.resolved_type_factory'));
  425. }
  426. /**
  427. * Gets the 'form.resolved_type_factory' service.
  428. *
  429. * This service is shared.
  430. * This method always returns the same instance of the service.
  431. *
  432. * @return Symfony\Component\Form\ResolvedFormTypeFactory A Symfony\Component\Form\ResolvedFormTypeFactory instance.
  433. */
  434. protected function getForm_ResolvedTypeFactoryService()
  435. {
  436. return $this->services['form.resolved_type_factory'] = new \Symfony\Component\Form\ResolvedFormTypeFactory();
  437. }
  438. /**
  439. * Gets the 'form.type.birthday' service.
  440. *
  441. * This service is shared.
  442. * This method always returns the same instance of the service.
  443. *
  444. * @return Symfony\Component\Form\Extension\Core\Type\BirthdayType A Symfony\Component\Form\Extension\Core\Type\BirthdayType instance.
  445. */
  446. protected function getForm_Type_BirthdayService()
  447. {
  448. return $this->services['form.type.birthday'] = new \Symfony\Component\Form\Extension\Core\Type\BirthdayType();
  449. }
  450. /**
  451. * Gets the 'form.type.checkbox' service.
  452. *
  453. * This service is shared.
  454. * This method always returns the same instance of the service.
  455. *
  456. * @return Symfony\Component\Form\Extension\Core\Type\CheckboxType A Symfony\Component\Form\Extension\Core\Type\CheckboxType instance.
  457. */
  458. protected function getForm_Type_CheckboxService()
  459. {
  460. return $this->services['form.type.checkbox'] = new \Symfony\Component\Form\Extension\Core\Type\CheckboxType();
  461. }
  462. /**
  463. * Gets the 'form.type.choice' service.
  464. *
  465. * This service is shared.
  466. * This method always returns the same instance of the service.
  467. *
  468. * @return Symfony\Component\Form\Extension\Core\Type\ChoiceType A Symfony\Component\Form\Extension\Core\Type\ChoiceType instance.
  469. */
  470. protected function getForm_Type_ChoiceService()
  471. {
  472. return $this->services['form.type.choice'] = new \Symfony\Component\Form\Extension\Core\Type\ChoiceType();
  473. }
  474. /**
  475. * Gets the 'form.type.collection' service.
  476. *
  477. * This service is shared.
  478. * This method always returns the same instance of the service.
  479. *
  480. * @return Symfony\Component\Form\Extension\Core\Type\CollectionType A Symfony\Component\Form\Extension\Core\Type\CollectionType instance.
  481. */
  482. protected function getForm_Type_CollectionService()
  483. {
  484. return $this->services['form.type.collection'] = new \Symfony\Component\Form\Extension\Core\Type\CollectionType();
  485. }
  486. /**
  487. * Gets the 'form.type.country' service.
  488. *
  489. * This service is shared.
  490. * This method always returns the same instance of the service.
  491. *
  492. * @return Symfony\Component\Form\Extension\Core\Type\CountryType A Symfony\Component\Form\Extension\Core\Type\CountryType instance.
  493. */
  494. protected function getForm_Type_CountryService()
  495. {
  496. return $this->services['form.type.country'] = new \Symfony\Component\Form\Extension\Core\Type\CountryType();
  497. }
  498. /**
  499. * Gets the 'form.type.date' service.
  500. *
  501. * This service is shared.
  502. * This method always returns the same instance of the service.
  503. *
  504. * @return Symfony\Component\Form\Extension\Core\Type\DateType A Symfony\Component\Form\Extension\Core\Type\DateType instance.
  505. */
  506. protected function getForm_Type_DateService()
  507. {
  508. return $this->services['form.type.date'] = new \Symfony\Component\Form\Extension\Core\Type\DateType();
  509. }
  510. /**
  511. * Gets the 'form.type.datetime' service.
  512. *
  513. * This service is shared.
  514. * This method always returns the same instance of the service.
  515. *
  516. * @return Symfony\Component\Form\Extension\Core\Type\DateTimeType A Symfony\Component\Form\Extension\Core\Type\DateTimeType instance.
  517. */
  518. protected function getForm_Type_DatetimeService()
  519. {
  520. return $this->services['form.type.datetime'] = new \Symfony\Component\Form\Extension\Core\Type\DateTimeType();
  521. }
  522. /**
  523. * Gets the 'form.type.email' service.
  524. *
  525. * This service is shared.
  526. * This method always returns the same instance of the service.
  527. *
  528. * @return Symfony\Component\Form\Extension\Core\Type\EmailType A Symfony\Component\Form\Extension\Core\Type\EmailType instance.
  529. */
  530. protected function getForm_Type_EmailService()
  531. {
  532. return $this->services['form.type.email'] = new \Symfony\Component\Form\Extension\Core\Type\EmailType();
  533. }
  534. /**
  535. * Gets the 'form.type.entity' service.
  536. *
  537. * This service is shared.
  538. * This method always returns the same instance of the service.
  539. *
  540. * @return Symfony\Bridge\Doctrine\Form\Type\EntityType A Symfony\Bridge\Doctrine\Form\Type\EntityType instance.
  541. */
  542. protected function getForm_Type_EntityService()
  543. {
  544. return $this->services['form.type.entity'] = new \Symfony\Bridge\Doctrine\Form\Type\EntityType($this->get('doctrine'));
  545. }
  546. /**
  547. * Gets the 'form.type.field' service.
  548. *
  549. * This service is shared.
  550. * This method always returns the same instance of the service.
  551. *
  552. * @return Symfony\Component\Form\Extension\Core\Type\FieldType A Symfony\Component\Form\Extension\Core\Type\FieldType instance.
  553. */
  554. protected function getForm_Type_FieldService()
  555. {
  556. return $this->services['form.type.field'] = new \Symfony\Component\Form\Extension\Core\Type\FieldType();
  557. }
  558. /**
  559. * Gets the 'form.type.file' service.
  560. *
  561. * This service is shared.
  562. * This method always returns the same instance of the service.
  563. *
  564. * @return Symfony\Component\Form\Extension\Core\Type\FileType A Symfony\Component\Form\Extension\Core\Type\FileType instance.
  565. */
  566. protected function getForm_Type_FileService()
  567. {
  568. return $this->services['form.type.file'] = new \Symfony\Component\Form\Extension\Core\Type\FileType();
  569. }
  570. /**
  571. * Gets the 'form.type.form' service.
  572. *
  573. * This service is shared.
  574. * This method always returns the same instance of the service.
  575. *
  576. * @return Symfony\Component\Form\Extension\Core\Type\FormType A Symfony\Component\Form\Extension\Core\Type\FormType instance.
  577. */
  578. protected function getForm_Type_FormService()
  579. {
  580. return $this->services['form.type.form'] = new \Symfony\Component\Form\Extension\Core\Type\FormType($this->get('property_accessor'));
  581. }
  582. /**
  583. * Gets the 'form.type.hidden' service.
  584. *
  585. * This service is shared.
  586. * This method always returns the same instance of the service.
  587. *
  588. * @return Symfony\Component\Form\Extension\Core\Type\HiddenType A Symfony\Component\Form\Extension\Core\Type\HiddenType instance.
  589. */
  590. protected function getForm_Type_HiddenService()
  591. {
  592. return $this->services['form.type.hidden'] = new \Symfony\Component\Form\Extension\Core\Type\HiddenType();
  593. }
  594. /**
  595. * Gets the 'form.type.integer' service.
  596. *
  597. * This service is shared.
  598. * This method always returns the same instance of the service.
  599. *
  600. * @return Symfony\Component\Form\Extension\Core\Type\IntegerType A Symfony\Component\Form\Extension\Core\Type\IntegerType instance.
  601. */
  602. protected function getForm_Type_IntegerService()
  603. {
  604. return $this->services['form.type.integer'] = new \Symfony\Component\Form\Extension\Core\Type\IntegerType();
  605. }
  606. /**
  607. * Gets the 'form.type.language' service.
  608. *
  609. * This service is shared.
  610. * This method always returns the same instance of the service.
  611. *
  612. * @return Symfony\Component\Form\Extension\Core\Type\LanguageType A Symfony\Component\Form\Extension\Core\Type\LanguageType instance.
  613. */
  614. protected function getForm_Type_LanguageService()
  615. {
  616. return $this->services['form.type.language'] = new \Symfony\Component\Form\Extension\Core\Type\LanguageType();
  617. }
  618. /**
  619. * Gets the 'form.type.locale' service.
  620. *
  621. * This service is shared.
  622. * This method always returns the same instance of the service.
  623. *
  624. * @return Symfony\Component\Form\Extension\Core\Type\LocaleType A Symfony\Component\Form\Extension\Core\Type\LocaleType instance.
  625. */
  626. protected function getForm_Type_LocaleService()
  627. {
  628. return $this->services['form.type.locale'] = new \Symfony\Component\Form\Extension\Core\Type\LocaleType();
  629. }
  630. /**
  631. * Gets the 'form.type.money' service.
  632. *
  633. * This service is shared.
  634. * This method always returns the same instance of the service.
  635. *
  636. * @return Symfony\Component\Form\Extension\Core\Type\MoneyType A Symfony\Component\Form\Extension\Core\Type\MoneyType instance.
  637. */
  638. protected function getForm_Type_MoneyService()
  639. {
  640. return $this->services['form.type.money'] = new \Symfony\Component\Form\Extension\Core\Type\MoneyType();
  641. }
  642. /**
  643. * Gets the 'form.type.number' service.
  644. *
  645. * This service is shared.
  646. * This method always returns the same instance of the service.
  647. *
  648. * @return Symfony\Component\Form\Extension\Core\Type\NumberType A Symfony\Component\Form\Extension\Core\Type\NumberType instance.
  649. */
  650. protected function getForm_Type_NumberService()
  651. {
  652. return $this->services['form.type.number'] = new \Symfony\Component\Form\Extension\Core\Type\NumberType();
  653. }
  654. /**
  655. * Gets the 'form.type.password' service.
  656. *
  657. * This service is shared.
  658. * This method always returns the same instance of the service.
  659. *
  660. * @return Symfony\Component\Form\Extension\Core\Type\PasswordType A Symfony\Component\Form\Extension\Core\Type\PasswordType instance.
  661. */
  662. protected function getForm_Type_PasswordService()
  663. {
  664. return $this->services['form.type.password'] = new \Symfony\Component\Form\Extension\Core\Type\PasswordType();
  665. }
  666. /**
  667. * Gets the 'form.type.percent' service.
  668. *
  669. * This service is shared.
  670. * This method always returns the same instance of the service.
  671. *
  672. * @return Symfony\Component\Form\Extension\Core\Type\PercentType A Symfony\Component\Form\Extension\Core\Type\PercentType instance.
  673. */
  674. protected function getForm_Type_PercentService()
  675. {
  676. return $this->services['form.type.percent'] = new \Symfony\Component\Form\Extension\Core\Type\PercentType();
  677. }
  678. /**
  679. * Gets the 'form.type.radio' service.
  680. *
  681. * This service is shared.
  682. * This method always returns the same instance of the service.
  683. *
  684. * @return Symfony\Component\Form\Extension\Core\Type\RadioType A Symfony\Component\Form\Extension\Core\Type\RadioType instance.
  685. */
  686. protected function getForm_Type_RadioService()
  687. {
  688. return $this->services['form.type.radio'] = new \Symfony\Component\Form\Extension\Core\Type\RadioType();
  689. }
  690. /**
  691. * Gets the 'form.type.repeated' service.
  692. *
  693. * This service is shared.
  694. * This method always returns the same instance of the service.
  695. *
  696. * @return Symfony\Component\Form\Extension\Core\Type\RepeatedType A Symfony\Component\Form\Extension\Core\Type\RepeatedType instance.
  697. */
  698. protected function getForm_Type_RepeatedService()
  699. {
  700. return $this->services['form.type.repeated'] = new \Symfony\Component\Form\Extension\Core\Type\RepeatedType();
  701. }
  702. /**
  703. * Gets the 'form.type.search' service.
  704. *
  705. * This service is shared.
  706. * This method always returns the same instance of the service.
  707. *
  708. * @return Symfony\Component\Form\Extension\Core\Type\SearchType A Symfony\Component\Form\Extension\Core\Type\SearchType instance.
  709. */
  710. protected function getForm_Type_SearchService()
  711. {
  712. return $this->services['form.type.search'] = new \Symfony\Component\Form\Extension\Core\Type\SearchType();
  713. }
  714. /**
  715. * Gets the 'form.type.text' service.
  716. *
  717. * This service is shared.
  718. * This method always returns the same instance of the service.
  719. *
  720. * @return Symfony\Component\Form\Extension\Core\Type\TextType A Symfony\Component\Form\Extension\Core\Type\TextType instance.
  721. */
  722. protected function getForm_Type_TextService()
  723. {
  724. return $this->services['form.type.text'] = new \Symfony\Component\Form\Extension\Core\Type\TextType();
  725. }
  726. /**
  727. * Gets the 'form.type.textarea' service.
  728. *
  729. * This service is shared.
  730. * This method always returns the same instance of the service.
  731. *
  732. * @return Symfony\Component\Form\Extension\Core\Type\TextareaType A Symfony\Component\Form\Extension\Core\Type\TextareaType instance.
  733. */
  734. protected function getForm_Type_TextareaService()
  735. {
  736. return $this->services['form.type.textarea'] = new \Symfony\Component\Form\Extension\Core\Type\TextareaType();
  737. }
  738. /**
  739. * Gets the 'form.type.time' service.
  740. *
  741. * This service is shared.
  742. * This method always returns the same instance of the service.
  743. *
  744. * @return Symfony\Component\Form\Extension\Core\Type\TimeType A Symfony\Component\Form\Extension\Core\Type\TimeType instance.
  745. */
  746. protected function getForm_Type_TimeService()
  747. {
  748. return $this->services['form.type.time'] = new \Symfony\Component\Form\Extension\Core\Type\TimeType();
  749. }
  750. /**
  751. * Gets the 'form.type.timezone' service.
  752. *
  753. * This service is shared.
  754. * This method always returns the same instance of the service.
  755. *
  756. * @return Symfony\Component\Form\Extension\Core\Type\TimezoneType A Symfony\Component\Form\Extension\Core\Type\TimezoneType instance.
  757. */
  758. protected function getForm_Type_TimezoneService()
  759. {
  760. return $this->services['form.type.timezone'] = new \Symfony\Component\Form\Extension\Core\Type\TimezoneType();
  761. }
  762. /**
  763. * Gets the 'form.type.url' service.
  764. *
  765. * This service is shared.
  766. * This method always returns the same instance of the service.
  767. *
  768. * @return Symfony\Component\Form\Extension\Core\Type\UrlType A Symfony\Component\Form\Extension\Core\Type\UrlType instance.
  769. */
  770. protected function getForm_Type_UrlService()
  771. {
  772. return $this->services['form.type.url'] = new \Symfony\Component\Form\Extension\Core\Type\UrlType();
  773. }
  774. /**
  775. * Gets the 'form.type_extension.csrf' service.
  776. *
  777. * This service is shared.
  778. * This method always returns the same instance of the service.
  779. *
  780. * @return Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension A Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension instance.
  781. */
  782. protected function getForm_TypeExtension_CsrfService()
  783. {
  784. return $this->services['form.type_extension.csrf'] = new \Symfony\Component\Form\Extension\Csrf\Type\FormTypeCsrfExtension($this->get('form.csrf_provider'), true, '_token');
  785. }
  786. /**
  787. * Gets the 'form.type_extension.form.http_foundation' service.
  788. *
  789. * This service is shared.
  790. * This method always returns the same instance of the service.
  791. *
  792. * @return Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension A Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension instance.
  793. */
  794. protected function getForm_TypeExtension_Form_HttpFoundationService()
  795. {
  796. return $this->services['form.type_extension.form.http_foundation'] = new \Symfony\Component\Form\Extension\HttpFoundation\Type\FormTypeHttpFoundationExtension();
  797. }
  798. /**
  799. * Gets the 'form.type_extension.form.validator' service.
  800. *
  801. * This service is shared.
  802. * This method always returns the same instance of the service.
  803. *
  804. * @return Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension instance.
  805. */
  806. protected function getForm_TypeExtension_Form_ValidatorService()
  807. {
  808. return $this->services['form.type_extension.form.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension($this->get('validator'));
  809. }
  810. /**
  811. * Gets the 'form.type_extension.repeated.validator' service.
  812. *
  813. * This service is shared.
  814. * This method always returns the same instance of the service.
  815. *
  816. * @return Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension A Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension instance.
  817. */
  818. protected function getForm_TypeExtension_Repeated_ValidatorService()
  819. {
  820. return $this->services['form.type_extension.repeated.validator'] = new \Symfony\Component\Form\Extension\Validator\Type\RepeatedTypeValidatorExtension();
  821. }
  822. /**
  823. * Gets the 'form.type_guesser.doctrine' service.
  824. *
  825. * This service is shared.
  826. * This method always returns the same instance of the service.
  827. *
  828. * @return Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser A Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser instance.
  829. */
  830. protected function getForm_TypeGuesser_DoctrineService()
  831. {
  832. return $this->services['form.type_guesser.doctrine'] = new \Symfony\Bridge\Doctrine\Form\DoctrineOrmTypeGuesser($this->get('doctrine'));
  833. }
  834. /**
  835. * Gets the 'form.type_guesser.validator' service.
  836. *
  837. * This service is shared.
  838. * This method always returns the same instance of the service.
  839. *
  840. * @return Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser A Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser instance.
  841. */
  842. protected function getForm_TypeGuesser_ValidatorService()
  843. {
  844. return $this->services['form.type_guesser.validator'] = new \Symfony\Component\Form\Extension\Validator\ValidatorTypeGuesser($this->get('validator.mapping.class_metadata_factory'));
  845. }
  846. /**
  847. * Gets the 'fragment.handler' service.
  848. *
  849. * This service is shared.
  850. * This method always returns the same instance of the service.
  851. *
  852. * @return Symfony\Component\HttpKernel\Fragment\FragmentHandler A Symfony\Component\HttpKernel\Fragment\FragmentHandler instance.
  853. */
  854. protected function getFragment_HandlerService()
  855. {
  856. $this->services['fragment.handler'] = $instance = new \Symfony\Component\HttpKernel\Fragment\FragmentHandler(array(), true);
  857. $instance->addRenderer($this->get('fragment.renderer.inline'));
  858. $instance->addRenderer($this->get('fragment.renderer.hinclude'));
  859. return $instance;
  860. }
  861. /**
  862. * Gets the 'fragment.listener' service.
  863. *
  864. * This service is shared.
  865. * This method always returns the same instance of the service.
  866. *
  867. * @return Symfony\Component\HttpKernel\EventListener\FragmentListener A Symfony\Component\HttpKernel\EventListener\FragmentListener instance.
  868. */
  869. protected function getFragment_ListenerService()
  870. {
  871. return $this->services['fragment.listener'] = new \Symfony\Component\HttpKernel\EventListener\FragmentListener($this->get('uri_signer'), '/_fragment');
  872. }
  873. /**
  874. * Gets the 'fragment.renderer.hinclude' service.
  875. *
  876. * This service is shared.
  877. * This method always returns the same instance of the service.
  878. *
  879. * @return Symfony\Bundle\FrameworkBundle\Fragment\ContainerAwareHIncludeFragmentRenderer A Symfony\Bundle\FrameworkBundle\Fragment\ContainerAwareHIncludeFragmentRenderer instance.
  880. */
  881. protected function getFragment_Renderer_HincludeService()
  882. {
  883. $this->services['fragment.renderer.hinclude'] = $instance = new \Symfony\Bundle\FrameworkBundle\Fragment\ContainerAwareHIncludeFragmentRenderer($this, $this->get('uri_signer'), NULL);
  884. $instance->setFragmentPath('/_fragment');
  885. return $instance;
  886. }
  887. /**
  888. * Gets the 'fragment.renderer.inline' service.
  889. *
  890. * This service is shared.
  891. * This method always returns the same instance of the service.
  892. *
  893. * @return Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer A Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer instance.
  894. */
  895. protected function getFragment_Renderer_InlineService()
  896. {
  897. $this->services['fragment.renderer.inline'] = $instance = new \Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer($this->get('http_kernel'));
  898. $instance->setFragmentPath('/_fragment');
  899. return $instance;
  900. }
  901. /**
  902. * Gets the 'http_kernel' service.
  903. *
  904. * This service is shared.
  905. * This method always returns the same instance of the service.
  906. *
  907. * @return Symfony\Bundle\FrameworkBundle\HttpKernel A Symfony\Bundle\FrameworkBundle\HttpKernel instance.
  908. */
  909. protected function getHttpKernelService()
  910. {
  911. return $this->services['http_kernel'] = new \Symfony\Bundle\FrameworkBundle\HttpKernel($this->get('debug.event_dispatcher'), $this, $this->get('debug.controller_resolver'));
  912. }
  913. /**
  914. * Gets the 'jms_aop.interceptor_loader' service.
  915. *
  916. * This service is shared.
  917. * This method always returns the same instance of the service.
  918. *
  919. * @return JMS\AopBundle\Aop\InterceptorLoader A JMS\AopBundle\Aop\InterceptorLoader instance.
  920. */
  921. protected function getJmsAop_InterceptorLoaderService()
  922. {
  923. return $this->services['jms_aop.interceptor_loader'] = new \JMS\AopBundle\Aop\InterceptorLoader($this, array());
  924. }
  925. /**
  926. * Gets the 'jms_aop.pointcut_container' service.
  927. *
  928. * This service is shared.
  929. * This method always returns the same instance of the service.
  930. *
  931. * @return JMS\AopBundle\Aop\PointcutContainer A JMS\AopBundle\Aop\PointcutContainer instance.
  932. */
  933. protected function getJmsAop_PointcutContainerService()
  934. {
  935. return $this->services['jms_aop.pointcut_container'] = new \JMS\AopBundle\Aop\PointcutContainer(array('security.access.method_interceptor' => $this->get('security.access.pointcut')));
  936. }
  937. /**
  938. * Gets the 'jms_di_extra.metadata.converter' service.
  939. *
  940. * This service is shared.
  941. * This method always returns the same instance of the service.
  942. *
  943. * @return JMS\DiExtraBundle\Metadata\MetadataConverter A JMS\DiExtraBundle\Metadata\MetadataConverter instance.
  944. */
  945. protected function getJmsDiExtra_Metadata_ConverterService()
  946. {
  947. return $this->services['jms_di_extra.metadata.converter'] = new \JMS\DiExtraBundle\Metadata\MetadataConverter();
  948. }
  949. /**
  950. * Gets the 'jms_di_extra.metadata.metadata_factory' service.
  951. *
  952. * This service is shared.
  953. * This method always returns the same instance of the service.
  954. *
  955. * @return Metadata\MetadataFactory A Metadata\MetadataFactory instance.
  956. */
  957. protected function getJmsDiExtra_Metadata_MetadataFactoryService()
  958. {
  959. $this->services['jms_di_extra.metadata.metadata_factory'] = $instance = new \Metadata\MetadataFactory(new \Metadata\Driver\LazyLoadingDriver($this, 'jms_di_extra.metadata_driver'), 'Metadata\\ClassHierarchyMetadata', true);
  960. $instance->setCache(new \Metadata\Cache\FileCache('/opt/local/apache2/htdocs/Symfony2-RESTAPI/app/cache/dev/jms_diextra/metadata'));
  961. return $instance;
  962. }
  963. /**
  964. * Gets the 'jms_di_extra.metadata_driver' service.
  965. *
  966. * This service is shared.
  967. * This method always returns the same instance of the service.
  968. *
  969. * @return JMS\DiExtraBundle\Metadata\Driver\AnnotationDriver A JMS\DiExtraBundle\Metadata\Driver\AnnotationDriver instance.
  970. */
  971. protected function getJmsDiExtra_MetadataDriverService()
  972. {
  973. return $this->services['jms_di_extra.metadata_driver'] = new \JMS\DiExtraBundle\Metadata\Driver\AnnotationDriver($this->get('annotation_reader'));
  974. }
  975. /**
  976. * Gets the 'kernel' service.
  977. *
  978. * This service is shared.
  979. * This method always returns the same instance of the service.
  980. *
  981. * @throws RuntimeException always since this service is expected to be injected dynamically
  982. */
  983. protected function getKernelService()
  984. {
  985. throw new RuntimeException('You have requested a synthetic service ("kernel"). The DIC does not know how to construct this service.');
  986. }
  987. /**
  988. * Gets the 'locale_listener' service.
  989. *
  990. * This service is shared.
  991. * This method always returns the same instance of the service.
  992. *
  993. * @return Symfony\Component\HttpKernel\EventListener\LocaleListener A Symfony\Component\HttpKernel\EventListener\LocaleListener instance.
  994. */
  995. protected function getLocaleListenerService()
  996. {
  997. return $this->services['locale_listener'] = new \Symfony\Component\HttpKernel\EventListener\LocaleListener('en', $this->get('router'));
  998. }
  999. /**
  1000. * Gets the 'logger' service.
  1001. *
  1002. * This service is shared.
  1003. * This method always returns the same instance of the service.
  1004. *
  1005. * @return Symfony\Bridge\Monolog\Logger A Symfony\Bridge\Monolog\Logger instance.
  1006. */
  1007. protected function getLoggerService()
  1008. {
  1009. $this->services['logger'] = $instance = new \Symfony\Bridge\Monolog\Logger('app');
  1010. $instance->pushHandler($this->get('monolog.handler.chromephp'));
  1011. $instance->pushHandler($this->get('monolog.handler.firephp'));
  1012. $instance->pushHandler($this->get('monolog.handler.main'));
  1013. $instance->pushHandler($this->get('monolog.handler.debug'));
  1014. return $instance;
  1015. }
  1016. /**
  1017. * Gets the 'mailer' service.
  1018. *…