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
Fabien Potencier
68011c0dd6
[DependenInjection] fixed CS
2011-03-22 19:47:46 +01:00
Jan Prieser
67aaf5ce91
Fixed PhpDumper isSimpleService and changed test fixtures
2011-03-22 17:01:03 +01:00
Miha Vrhovnik
25e4193294
removed unused variable
2011-03-21 11:34:06 +01:00
Miha Vrhovnik
496280329b
changing phpdoc parameter to array as all variables are used in foreach
2011-03-21 11:28:38 +01:00
Jan Prieser
60c1159b2e
[DependecyInjection] fixed typo. Using InterfaceInjectors broke methodCalls.
2011-03-17 15:03:16 +01:00
Fabien Potencier
e6ebf4da4c
fixed small bug in sub-request profiling
2011-03-16 19:33:55 +01:00
Fabien Potencier
ad3b7e912d
merged noelg/profiler
2011-03-16 16:44:44 +01:00
Fabien Potencier
ae7a2df104
fixed CS
2011-03-16 14:45:34 +01:00
Fabien Potencier
ac49289451
Merge remote branch 'rrehbeindoi/master'
2011-03-16 14:44:44 +01:00
max
e2542962df
reinitialize array so arguments dont stack up
2011-03-15 12:08:13 -07:00
Ray
c2908cdaa0
Allow collection's internal keys to be mixed case
2011-03-15 09:35:40 -05:00
Johannes M. Schmitt
98216a9af2
[DependencyInjection] refactored some more exceptions
2011-03-14 21:14:49 +01:00
Johannes M. Schmitt
a1fb717074
[DependencyInjection] loader fix
2011-03-14 17:45:27 +01:00
Johannes M. Schmitt
e624e27675
[DependencyInjection] refactored some exceptions
2011-03-13 20:35:15 +01:00
Fabien Potencier
a1fcbf4d5f
Merge remote branch 'kriswallsmith/dic/false-circular-ref-fix'
...
* kriswallsmith/dic/false-circular-ref-fix:
[DependencyInjection] fixed false positive when detecting circular references if a service throws an exception during creation
2011-03-11 19:58:54 +01:00
Fabien Potencier
cedf588e98
Revert "Merge remote branch 'kriswallsmith/dic/lazy-replace-ext-params'"
...
This reverts commit 32ac2e8709
, reversing
changes made to 6e81c28ca4
.
2011-03-11 15:35:09 +01:00
Fabien Potencier
f321fadad6
[DependencyInjection] moved most protected things to private
2011-03-11 14:50:46 +01:00
Fabien Potencier
9dadcff13e
[DependencyInjection] removed obsolete code
2011-03-11 14:36:44 +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
32ac2e8709
Merge remote branch 'kriswallsmith/dic/lazy-replace-ext-params'
...
* kriswallsmith/dic/lazy-replace-ext-params:
[DependencyInjection] added test for lazy param replacement
Removed replacement of parameter placeholders at load time since they're now replaced at compile time. Extensions should be written to expect parameter placeholders.
2011-03-11 10:41:22 +01:00
Amal Raghav
517735e581
fix for ignoring abstract definition
2011-03-11 10:36:48 +01:00
Kris Wallsmith
f33cf0ba5d
Removed replacement of parameter placeholders at load time since they're now replaced at compile time. Extensions should be written to expect parameter placeholders.
...
Revert "[DependencyInjection] Allow parameter replacement within extension configurations."
This reverts commit ab7ad4808b
.
Conflicts:
src/Symfony/Component/DependencyInjection/ContainerBuilder.php
2011-03-10 12:59:00 -08:00
Johannes M. Schmitt
d9848f38ac
[DependencyInjection] added some tests
2011-03-10 15:31:00 +01:00
Kris Wallsmith
8c45a21637
[DependencyInjection] fixed false positive when detecting circular references if a service throws an exception during creation
2011-03-09 06:38:02 -08:00
Kris Wallsmith
de6c353b40
[DependencyInjection] made compiler lazy again since there are many temporary ContainerBuilder objects that don't use it
2011-03-08 05:34:07 -08: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
Kris Wallsmith
bf0553c23a
[DependencyInjection] extensions should only load if called during configuration
2011-03-03 13:53:29 +01:00
ornicar
6790e45911
[DependencyInjection] Fix variable name in ExtensionInterface
2011-03-01 16:20:26 -08:00
Fabien Potencier
fd53035c8d
Merge remote branch 'schmittjoh/inlinePassFix'
...
* schmittjoh/inlinePassFix:
[DependencyInjection/Compiler] fixes a bug which silently changed the scope of services
2011-03-01 20:38:48 +01:00
Pascal Borreli
b84999ac33
[DependencyInjection] Fixed Typo
2011-03-01 18:58:08 +01:00
Johannes M. Schmitt
67c886f3df
[DependencyInjection/Compiler] fixes a bug which silently changed the scope of services
2011-03-01 13:47:34 +01:00
Fabien Potencier
cdf6851eb3
fixed merge
2011-02-27 21:16:13 +01:00
Christophe Coevoet
92bfbf575c
Fixed CS
2011-02-27 20:56:29 +01:00
Pascal Borreli
66f4d8bf6d
[DependencyInjection] Removed useless else
2011-02-27 18:36:37 +01:00
Pascal Borreli
1a8ce933e1
[DependencyInjection] Fixed typo
2011-02-26 20:02:05 +01:00
noel guilbert
a8eff2b154
Improved profiler to store and retrieve sub requests data
2011-02-26 17:24:02 +01:00
Fabien Potencier
f54cedfe5e
added LICENSE files for the subtree repositories
2011-02-22 18:58:15 +01:00
Fabien Potencier
6b12c21261
moved DependencyInjection\Configuration to Config\Definition
2011-02-17 16:03:48 +01:00
Ryan Weaver
c5e4dfb5a6
[DependencyInjection] Adding to InvalidArgumentException messages to clarify when a service is given an invalid "tags" value.
2011-02-17 15:59:39 +01:00
Christophe Coevoet
ee8ad0c4e9
Fixed previous commit to handle the case of arrays
2011-02-16 23:07:11 +01:00
Christophe Coevoet
27e2ec139d
Added the possibility to add the value in the exception message
2011-02-16 23:07:11 +01:00
Christophe Coevoet
6b4538a1c4
Added the test ifNotInArray
2011-02-16 23:07:11 +01:00
Christophe Coevoet
ef045a9433
Added missing license header in the DependenciInjection\Configuration classes
2011-02-16 23:07:11 +01:00
Christophe Coevoet
077d1921b3
Added the support of the validation in the Builder
2011-02-16 23:07:10 +01:00
Christophe Coevoet
a5bac4b5a3
Fixed xmlloader
2011-02-15 22:41:29 +01:00
Fabien Potencier
a29a413c48
made DIC extensions members of the Container instead of static members
2011-02-15 22:22:32 +01:00