Fabien Potencier
865461d204
standardized the way we handle XML errors
2012-08-28 08:43:14 +02:00
Fabien Potencier
03d22b74ec
fixed CS (mainly method signatures)
2012-07-09 14:43:50 +02:00
Fabien Potencier
e173d79e34
fixed CS
2012-05-18 19:37:58 +02:00
Fabien Potencier
e3421a0b1d
[DoctrineBridge] fixed some CS
2011-12-13 10:22:12 +01:00
Fabien Potencier
851eb73778
removed unused use statements
2011-10-29 11:56:30 +02:00
Fabien Potencier
17af13813a
fixed usage of LIBXML_COMPACT as it is not always available
2011-09-28 21:54:54 +02:00
stealth35
8d50c162b9
few optimisations for XliffFileLoader and XmlFileLoader
2011-09-05 15:06:29 +02:00
Fabien Potencier
bb3f5c5575
[DependencyInjection] fixed CS for previous merge
2011-07-06 15:26:08 +02:00
Lars Strojny
133169f668
Better exception message for extension in XmlFileLoader
2011-07-06 00:08:33 +02:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Arnout Boks
a0397f99f5
[DependencyInjection] Fixed bug where anonymous services from two different xml-files (with the same basename) could collide
2011-05-28 10:29:32 +02:00
Fabien Potencier
6fec656239
[DependencyInjection] forced anonymous services to always be private
2011-05-01 17:21:18 +02:00
Lukas Kahwe Smith
d9491a743e
removed support for interface injection as well as all relevant tests
2011-04-23 11:42:31 +02:00
Ryan Weaver
b9883a3bad
[Config] Improving the exception when a resource cannot be imported
...
This improves, for example, the exception one would receive if they tried to import a resource from a bundle that doesn't exist.
Previously, the deep "bundle is not activated" exception would be thrown. That has value, however there is no indication of where
the exception is actually occurring.
In this new implementation, we throw an exception that explains exactly which resource, and from which source resource, cannot be
loaded. The deeper exception is still thrown as a nested exception.
Two caveats:
* The `HttpKernel::varToString` method was replicated
* This introduces a new `Exception` class, which allows us to prevent lot's of exceptions from nesting into each other in the case
that some deeply imported resource cannot be imported (each upstream import that fails doesn't add its own exception).
2011-04-01 18:59:54 -05:00
Ryan Weaver
65ac5ec7c0
[DependencyInjection] Fixing a bug where "ignore_errors" doesn't work in YAML and XML
...
Tests added, the arguments were simply mismatched.
2011-04-01 18:59:45 -05:00
Fabien Potencier
e4a3e0c2c7
[Config] moved from protected to private (WIP)
2011-03-23 19:34:00 +01:00
Johannes M. Schmitt
a1fb717074
[DependencyInjection] loader fix
2011-03-14 17:45:27 +01:00
Fabien Potencier
f321fadad6
[DependencyInjection] moved most protected things to private
2011-03-11 14:50:46 +01:00
Fabien Potencier
a8d05746ff
Merge remote branch 'schmittjoh/propertyAnnotations'
...
* schmittjoh/propertyAnnotations:
[DependencyInjection] added some tests
[DependencyInjection] adds property injection
2011-03-11 13:12:12 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
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