Johannes Schmitt
eb2eb2e47a
[DependencyInjection] adds property injection
2011-03-05 13:03:28 +01:00
Christophe Coevoet
a5bac4b5a3
Fixed xmlloader
2011-02-15 22:41:29 +01:00
Lukas Kahwe Smith
7f182bd877
implicitly load all registered bundles, all loading is now handled by load(), disable loading of an extension explcitly via setting the extension config to false (for now only Yaml is implemented)
2011-02-15 22:11:08 +01:00
Fabien Potencier
391e00c1de
[DependencyInjection] fixed a bug when xpath() returns false
2011-02-15 22:06:52 +01:00
Fabien Potencier
81765f8b6a
[DependencyInjection] fixed XML loader
2011-02-15 10:09:58 +01:00
Tim Nagel
7173764dc1
[Dependency Injection] PHPDoc
2011-02-14 11:16:04 +01:00
Fabien Potencier
5c905beb13
moved common configuration classes to a new Config component
2011-02-13 22:31:50 +01:00
Fabien Potencier
b91f082be5
Revert "moved Resource to the Config component"
...
This reverts commit f53080860a
.
Revert "[Router] config fixes"
This reverts commit 51beecc6f2
.
Revert "moved duplicated files to a new Config component"
This reverts commit a8ec9b27f0
.
2011-02-10 16:14:12 +01:00
Fabien Potencier
f53080860a
moved Resource to the Config component
2011-02-10 16:07:42 +01:00
Fabien Potencier
e58a84eb09
added a FileLocator to DIC so that we can load resources like @BundleName/Resources/...
2011-02-10 00:44:02 +01:00
Jeremy Mikola
743f25a287
[DependencyInjection] Create explicit factoryClass property for Definitions
...
Previously, the Definition class was used both for type inference and factory construction (if factoryService was absent). This is fine for cases where classes create instances of themselves (e.g. getInstance() or create()), but leads to ambiguity when we have a separate factory class.
2011-02-05 20:39:42 +01:00
Johannes Schmitt
803dd58002
add definition inheritance support
2011-01-28 09:12:29 +01:00
Johannes M. Schmitt
0144dd86da
adds synthetic attribute to definitions
...
This attribute can be used to hint that the service is being injected
dynamically at runtime, and not constructed by the DIC.
2011-01-23 21:11:50 +01:00
Johannes M. Schmitt
1d5b6ed908
adds scope to the DI container
2011-01-22 15:20:50 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Victor Berchet
22f04f50a6
[DI XmlLoader] Add missing type hints
2011-01-11 20:29:29 +01:00
Fabien Potencier
b2a720f2b7
[DependencyInjection] restricted supported for only phar URI
2011-01-07 16:03:57 +01:00
Martin Hason
a11619973b
[DependencyInjection] fix xml validation for extension in phar archive
2011-01-07 16:00:28 +01:00
Johannes Schmitt
3785a99b94
adds visibility to aliases
2011-01-07 15:58:48 +01:00
Johannes Schmitt
db5e180d37
tweaked DI container
2010-12-30 15:59:52 +01:00
Jordi Boggiano
ac7e0bc35f
[DependencyInjection] Fixes a loading order issue
...
ab7ad4808b
introduced a regression when using a parameter in an extension config that is defined in the same file, the ParameterBag can not resolve it
2010-12-13 07:52:09 +01:00
Bulat Shakirzyanov
73331cf1c1
[DependencyInjection] Interface Injection implementation
2010-11-30 20:36:56 +01:00
Fabien Potencier
92f3d9e7ec
[DependencyInjection] removed the leading _ for anonymous service ids (the usage of strtr() in the conversion between ids and methods does not take leading _ into account like camelize() does)
2010-11-15 09:56:20 +01:00
Fabien Potencier
988722b23b
[DependencyInjection] fixed phpdoc
2010-10-26 16:01:39 +02:00
Jeremy Mikola
0aba8ef720
[DependencyInjection] XmlFileLoader should allow "factory-service" attribute without "class" for <service>
2010-10-19 21:10:07 +02:00
Kris Wallsmith
f79e23ffb5
Removed all those spaces after @author that were bothering me so…
2010-10-18 16:55:41 +02:00
Fabien Potencier
7c1b42e81b
[DependencyInjection] added a way to inject an anonymous service in an extension configuration
...
<foo:bar>
<service class="Foo" />
<service class="Bar" />
</foo:bar>
In the foo:bar extension method, you can retrieve the services with:
// always an array of services
$config['_services']
2010-09-02 12:17:32 +02:00
Fabien Potencier
a432417ab9
[DependencyInjection] added a way to ignore errors when importing a non-existent file (useful when you want to include an optional service file)
2010-08-24 16:37:41 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00