Fabien Potencier
1d362b8849
[DependencyInjection] fixed a bug where the strict flag on references were lost ( closes #6607 )
2013-01-07 22:36:09 +01:00
Fabien Potencier
1e2fb64817
[DependencyInjection] refactored code to avoid logic duplication
2013-01-06 08:52:07 +01:00
Fabien Potencier
e0923ae1d0
[DependencyInjection] fixed PhpDumper optimizations when an inlined service depends on the current one indirectly
2013-01-05 10:18:27 +01:00
Fabien Potencier
cd153901ea
[DependencyInjection] fixed PhpDumper when an inlined service definition has some properties
2013-01-05 10:03:43 +01:00
Fabien Potencier
e939a4236c
[DependencyInjection] added some tests for PhpDumper when the container is compiled
2013-01-05 09:50:47 +01:00
Fabien Potencier
4e0c99211d
prevents injection of malicious doc types
2012-08-28 08:43:14 +02:00
hidenorigoto
2a124bc89c
[DependencyInjection] Added a test for a frozen constructor of a container with no parameters
2012-08-07 01:03:17 +09:00
Fabien Potencier
03d22b74ec
fixed CS (mainly method signatures)
2012-07-09 14:43:50 +02:00
Fabien Potencier
26b489f499
fixed CS
2012-05-20 18:15:10 +02:00
Fabien Potencier
906f6f662c
[DependencyInjection] fixed private services removal when used as configurators ( closes #3758 )
2012-05-07 12:47:50 +02:00
Joseph Bielawski
05b223817e
[DependencyInjection] Fix for issue introduced in 3ae826a
2012-04-14 12:59:57 +02:00
Carsten Nielsen
3ae826a07d
Fix issue #3251 : Check attribute type of service tags
...
The attributes of service tags have to be of a scalar type.
It was possible to add arrays here with yaml-configuration.
2012-04-13 17:07:37 +02:00
Fabien Potencier
a10fee16c1
merged branch igorw/dic-yaml-without-args (PR #3747 )
...
Commits
-------
24a0d0a
[DependencyInjection] Support Yaml calls without arguments
Discussion
----------
[DependencyInjection] Support Yaml calls without arguments
2012-04-01 10:27:21 +02:00
Igor Wiedler
24a0d0a2dc
[DependencyInjection] Support Yaml calls without arguments
2012-03-31 21:11:13 +02:00
Jordi Boggiano
a894431c6c
[DependencyInjection] Allow parsing of parameters near escaped percent signs
2012-03-06 13:33:50 +01:00
Christophe Coevoet
045f936038
Changed the testcase to expect the unescaping only after the resolution
...
String values are not unescaped either in resolveValue() because it can
be called several times for the same parameter.
2012-02-02 18:34:05 +01:00
lsmith77
a1b6d4c46b
Added a failing testcase for escaped % in array parameters
2012-02-02 18:33:55 +01:00
digitalkaoz
9441c46bb6
[DependencyInjection] PhpDumper, fixes #2730
2012-01-06 21:20:08 +01:00
Eric Clemmons
99011ca9c9
Added tests for ParameterBag parameters with spaces
2011-12-27 12:48:49 -08:00
Christophe Coevoet
2c3e9adcd1
[DependencyInjection] Made the reference case insensitive
...
The container is case insensitive so using capital letters in a reference
made it fail in some cases when checking the dependencies.
Closes #2807
2011-12-08 16:30:50 +01:00
Dariusz Górecki
769c17bb95
Throw exceptions in case someone forgot to set method name in call.
...
Bug fix: yes
Feature add: no
Symfony2 tests pass: yes
Symfony2 tests added: yes
In general without this exception generated by php dumper container class, will cause PHP fatal error, bacause method call will look like this: `$instance->(/* arguments*/);`.
2011-11-30 15:59:17 +01:00
Fabien Potencier
851eb73778
removed unused use statements
2011-10-29 11:56:30 +02:00
Jeremy Mikola
80f0b980ba
[DependencyInjection] Fix DefinitionDecorator::getArgument() for replacements
...
While Definition::getArgument() could be used to fetch replaced values, it relied upon bad comparison logic (e.g. "index_1" > 1). Additionally, storing original arguments and replacements in the same array makes Definition::getArguments()'s bounds check unreliable. A single argument and its replacement would count twice, allowing getArgument(2) to pass the bounds check and result in an array index error.
With this new method, fetching of replacement arguments is more straightforward and bounds checking functions as it should.
2011-10-27 18:03:51 -04:00
Jeremy Mikola
4bbb685557
[DependencyInjection] Test Definition and DefinitionDecorator exceptions
2011-10-27 17:59:47 -04:00
Vadim Tyukov
808088a3ca
added the ability to use dot and single quotes in the keys and values
2011-10-24 12:45:36 +03:00
Fabien Potencier
49c585ebd2
Revert "merged branch stealth35/ini_bool (PR #2235 )"
...
This reverts commit 363057b181
, reversing
changes made to 545cd4cd63
.
2011-09-25 11:33:22 +02:00
Fabien Potencier
fa13469bba
Revert "[DependencyInjection] fixed array support for the ini loader"
...
This reverts commit e0ace8eaee
.
2011-09-25 11:33:07 +02:00
Fabien Potencier
27fc06785b
Revert "[DepedencyInjection] fixed unit tests"
...
This reverts commit b8e5a155e4
.
2011-09-25 11:33:00 +02:00
Fabien Potencier
b8e5a155e4
[DepedencyInjection] fixed unit tests
2011-09-23 11:59:37 +02:00
Fabien Potencier
e0ace8eaee
[DependencyInjection] fixed array support for the ini loader
2011-09-23 11:45:30 +02:00
stealth35
11c441289a
[DependencyInjection] fix 2219 IniFileLoader accept Boolean
2011-09-21 22:14:12 +02:00
H. Westphal
3e2f1a4b13
Removed executable bits from all php files
2011-09-09 15:16:17 +02:00
Johannes Schmitt
2c224ce42b
improves the exception message, and removes unnecessary constraint to only allow strings inside strings
2011-07-16 16:10:11 +02:00
Fabien Potencier
e718a51b59
[DependencyInjection] fixed un-detected circular references involving aliases
2011-07-11 18:25:40 +02:00
Fabien Potencier
c3bb214e94
[DependencyInjection] removed injection for protected and private properties
2011-06-27 08:28:54 +02:00
stloyd
0d3fb6f26c
Missing quote in IniFileLoader exception
2011-06-24 16:28:15 +02:00
Victor Berchet
d89298de7c
[DependencyInjection] Fix a typo
2011-06-16 10:37:09 +02:00
Pascal Borreli
f5eaa404c7
[Tests] Fixed typos
2011-06-12 20:52:53 +00:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Fabien Potencier
65200aa86a
added missing license headers
2011-05-31 10:57:06 +02: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
3bdb7c2b57
[DependencyInjection] fixed regression when a parameter contains an escaped %
...
Notice that this is still not perfect, but I don't see how to fix the remaining
potential problems.
2011-05-26 12:47:50 +02:00
Fabien Potencier
462f222319
[DependencyInjection] changed \LogicException to RuntimeException to be more consistent
2011-05-25 09:59:38 +02:00
Fabien Potencier
2438a73c7b
[DependencyInjection] added a check for circular references in parameter definitions
2011-05-25 09:57:38 +02:00
Fabien Potencier
456eb53eb8
[DependencyInjection] renamed CircularReferenceException to ServiceCircularReferenceException
2011-05-25 09:48:49 +02:00
Fabien Potencier
6c409cac84
[DependencyInjection] refactored parameter bag parameter replacements (removed duplicated code)
2011-05-25 09:35:51 +02:00
everzet
98b0bdcb15
[DependencyInjection] added failing private service user test-case
2011-05-23 22:38:23 +03:00
Fabien Potencier
0168241014
[DependencyInjection] renamed NonExistentParameterException and NonExistentServiceException to ParameterNotFoundException and ServiceNotFoundException
2011-05-17 16:26:08 +02:00
Christophe Coevoet
c2f074b7d5
[DependencyInjection] Fixed a property visibility in GraphvizDumper and removed a useless instanciation in the test
2011-05-13 12:18:09 +02:00
Fabien Potencier
175f944f93
[DependencyInjection] added NonExistentParameterException that indicates where a non-existent parameter is being used
2011-04-26 12:36:25 +02:00