This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config
Fabien Potencier 4033b602ff feature #20260 [DependencyInjection] Support autowiring for EventDispatcher/EventDispatcherInterface (chalasr)
This PR was merged into the 3.3-dev branch.

Discussion
----------

[DependencyInjection] Support autowiring for EventDispatcher/EventDispatcherInterface

| Q | A |
| --- | --- |
| Branch? | master |
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | n/a |
| License | MIT |
| Doc PR | n/a |

As it is a very common dependency. Currently it gives:

> [Symfony\Component\DependencyInjection\Exception\RuntimeException]
> Unable to autowire argument of type "Symfony\Component\EventDispatcher\EventDispatcherInterface" for the service "dummy". Multiple services exist for this interface (debug.event_dispatcher, debug.event_dispatcher.parent).

After this, the `TraceableEventDispatcher` will be injected in dev and the `ContainerAwareEventDispatcher` in prod, as when injecting `@event_dispatcher` explicitly.

ping @weaverryan

IMHO this could be treated as a an enhancement for the autowiring feature and be part of 3.2.

Commits
-------

5fd4733 Support autowiring for EventDispatcher/EventDispatcherInterface
2016-12-06 15:46:10 +01:00
..
schema [Workflow] streamline XML schema definition 2016-11-15 15:59:09 +01:00
annotations.xml [FrameworkBundle] Wire PhpArrayAdapter with a new cache warmer for annotations 2016-07-30 03:40:00 -04:00
assets.xml renamed asset_path() to asset() and added a BC layer 2015-02-10 13:45:46 +01:00
cache.xml [FrameworkBundle] Dont rely on any parent definition for "cache.annotations" 2016-11-24 12:47:42 +01:00
collectors.xml [FrameworkBundle] Extends the RequestDataCollector 2016-03-30 19:02:53 +02:00
debug_prod.xml Added a default ide file link web view 2016-10-25 15:27:26 +02:00
debug.xml Support autowiring for EventDispatcher/EventDispatcherInterface 2016-11-16 19:46:34 +01:00
esi.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
form_csrf.xml Merge branch '2.8' into 3.1 2016-08-16 07:58:24 -07:00
form_debug.xml [HttpKernel] Use VarDumper in the profiler 2016-09-17 16:23:20 +02:00
form.xml Merge branch '3.0' into 3.1 2016-06-29 07:41:56 +02:00
fragment_listener.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
fragment_renderer.xml Merge branch '2.8' 2015-09-10 10:18:49 +02:00
profiling.xml [HttpKernel] removed deprecated profiler storages 2015-10-01 07:55:42 +02:00
property_access.xml [PropertyAccess] Add PSR-6 cache 2016-06-08 18:51:42 +02:00
property_info.xml Fix PropertyInfo extractor namespace in framework bundle 2015-11-18 09:40:44 +01:00
request.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
router_dev.php Fix the server variables in the router_*.php files 2015-11-13 09:09:48 +01:00
router_prod.php Fix the server variables in the router_*.php files 2015-11-13 09:09:48 +01:00
router_test.php [FrameworkBundle] added a test router for the buil-in web server 2014-12-29 12:17:32 +01:00
routing.xml Merge branch '2.8' 2015-10-07 09:44:07 +02:00
security_csrf.xml Merge branch '2.8' 2015-10-07 09:44:07 +02:00
serializer.xml Merge branch '3.1' 2016-11-14 08:20:13 -08:00
services.xml feature #20260 [DependencyInjection] Support autowiring for EventDispatcher/EventDispatcherInterface (chalasr) 2016-12-06 15:46:10 +01:00
session.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
ssi.xml [Framework+SecurityBundle] remove recently introduced *.class parameters 2014-10-06 15:17:46 +02:00
templating_debug.xml removed all *.class parameters 2015-03-26 16:34:43 +01:00
templating_php.xml Added a default ide file link web view 2016-10-25 15:27:26 +02:00
templating.xml [FrameworkBundle] Fix Templating Engine autowiring 2016-03-31 11:54:21 +02:00
test.xml Merge branch '2.8' 2015-07-01 22:40:29 +02:00
translation_debug.xml Minor fixes for the profiler and toolbar 2015-10-01 15:15:47 +02:00
translation.xml [FrameworkBundle] removed the Translation component dependency on FrameworkBundle 2016-09-28 08:31:25 -07:00
validator.xml [FrameworkBundle] Introduce a cache warmer for Validator based on PhpArrayAdapter 2016-08-11 14:01:30 +02:00
web.xml [FrameworkBundle] removed the Translation component dependency on FrameworkBundle 2016-09-28 08:31:25 -07:00
workflow.xml [Workfow] Rename current MarkingStore 2016-11-09 16:22:39 +01:00