Christophe Coevoet
05f7f78332
Fixed the phpdoc in the DependencyInjection component
2012-09-08 00:56:45 +02:00
Pascal Borreli
6ac8e7308d
Fixed typos
2012-07-28 22:02:29 +00:00
Fabien Potencier
d100ffaf76
fixed CS
2012-07-09 14:54:20 +02:00
Fabien Potencier
03d22b74ec
fixed CS (mainly method signatures)
2012-07-09 14:43:50 +02:00
Fabien Potencier
3bdf52a16a
fixed CS
2012-05-18 19:42:42 +02:00
Fabien Potencier
e173d79e34
fixed CS
2012-05-18 19:37:58 +02:00
Fabien Potencier
41621e42e9
fixed phpdoc @param alignment
2012-05-15 22:19:31 +02:00
Fabien Potencier
ce9791246b
fixed phpdoc @param alignment
2012-05-15 18:56:32 +02:00
Fabien Potencier
4c7261e3b1
merged 2.0
2012-05-11 18:14:47 +02:00
Fabien Potencier
906f6f662c
[DependencyInjection] fixed private services removal when used as configurators ( closes #3758 )
2012-05-07 12:47:50 +02:00
Eriksen Costa
013f998bb8
updated license blocks
2012-03-31 18:00:32 -03:00
Hugo Hamon
defdac6d0d
[DependencyInjection] removed unused private property $parameterBag in ResolveParameterPlaceHoldersPass::process() method.
2012-01-10 22:07:35 +01:00
Hugo Hamon
1ad3d8673b
[DependencyInjection] removed unused $compiler local variable in RepeatedPass::process() method.
2012-01-10 22:07:30 +01:00
Hugo Hamon
7088d942ce
[DependencyInjection] fixed wrong local variable name in RemoveUnusedDefinitionsPass::process() method.
2012-01-10 22:07:25 +01:00
Fabien Potencier
5d6a7d35b0
merged 2.0
2011-12-18 14:48:17 +01:00
Fabien Potencier
4316595dbb
fixed CS
2011-12-18 14:42:59 +01:00
Fabien Potencier
142cef21bb
merged 2.0
2011-12-13 16:12:53 +01:00
Fabien Potencier
e3421a0b1d
[DoctrineBridge] fixed some CS
2011-12-13 10:22:12 +01:00
Jeremy Mikola
b7300d2e07
[DependencyInjection] Fix up @throws documentation
2011-12-04 22:21:11 -08:00
Jeremy Mikola
123f514e06
[DependencyInjection] Use component-specific SPL exceptions
...
This replaces existing use of core SPL exceptions with the equivalent classes defined within the component. Although method documentation has been changed, this change should be BC since the component-specific SPL exceptions extend their core counterpart.
This commit purposely omits any changes to the PhpDumper, which throws several core SPL exceptions.
2011-12-04 22:21:11 -08:00
Fabien Potencier
2b5d4b90d8
merged 2.0
2011-11-24 07:16:52 +01:00
Fabien Potencier
5878490b16
removed unused use statements
2011-11-24 07:16:14 +01:00
Fabien Potencier
dec43f5539
merged 2.0
2011-10-29 12:01:39 +02:00
Fabien Potencier
851eb73778
removed unused use statements
2011-10-29 11:56:30 +02:00
Helmer Aaviksoo
c4226bb6dc
Removed redundant "@return void"-s
2011-10-07 11:15:35 +03:00
Fabien Potencier
97cb35b47a
[DependencyInjection] tagged the public @api
2011-07-20 10:50:27 +02:00
Fabien Potencier
e718a51b59
[DependencyInjection] fixed un-detected circular references involving aliases
2011-07-11 18:25:40 +02:00
Arnaud Le Blanc
e6a2d76366
delay resolving values of extensions config until all files are loaded
2011-07-09 18:03:05 +02:00
Fabien Potencier
1aabc5da64
fixed CS
2011-06-08 12:16:48 +02:00
Pascal Borreli
404c452c0b
[Various] Phpdoc & typos
2011-06-04 15:30:56 +00:00
Fabien Potencier
65200aa86a
added missing license headers
2011-05-31 10:57:06 +02:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00: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
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
Fabien Potencier
0168241014
[DependencyInjection] renamed NonExistentParameterException and NonExistentServiceException to ParameterNotFoundException and ServiceNotFoundException
2011-05-17 16:26:08 +02:00
Fabien Potencier
8b0450083a
[DependencyInjection] removed unused vars
2011-05-01 17:21:17 +02:00
Pascal Borreli
391744719a
Various typos
2011-04-30 19:40:15 +00:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03: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
Pascal Borreli
8c0beea677
[Phpdoc] Cleaning/fixing
2011-04-23 15:18:47 +00:00
Lukas Kahwe Smith
d9491a743e
removed support for interface injection as well as all relevant tests
2011-04-23 11:42:31 +02:00
Pascal Borreli
b5769c52d6
Fixed various typo
2011-04-22 23:12:50 +00:00
Fabien Potencier
8b2b8e16dc
Merge remote branch 'schmittjoh/referenceValidation'
...
* schmittjoh/referenceValidation:
[DependencyInjection] also check references of inlined services
[DependencyInjection] adds emulation of "exception-on-invalid-reference" behavior
2011-04-21 22:44:20 +02:00
Kris Wallsmith
470baaab9f
[DependencyInjection] renamed ContainerBuilder::remove() as removeDefinition() to be more consistent with other definition-related methods
2011-04-20 04:48:19 -07:00
Kris Wallsmith
cdf706d357
[DependencyInjection] renamed Definition::setArgument() as replaceArgument() to be more specific
2011-04-20 04:47:44 -07:00
Brikou CARRE
e898445b94
removed empty lines/trailing spaces
2011-04-15 21:12:02 +02:00
Fabien Potencier
de390fd893
[DependencyInjection] removed timing info as it is useless
2011-04-15 10:42:56 +02:00
Fabien Potencier
0b563c32ac
Merge remote branch 'schmittjoh/diLogging'
...
* schmittjoh/diLogging:
[DependencyInjection] enable debug related passes only in debug environment
[DependencyInjection] removed pass time
[DependencyInjection] fixes a bug which might have occurred when using property injection under certain circumstances
[DependencyInjection] fixed method name
[FrameworkBundle] whitespace fix
[DependencyInjection] refactored code a bit, added some more logging messages
[DependencyInjection] dump a readable format
[DependencyInjection] better logging
2011-04-15 10:38:54 +02:00
Johannes Schmitt
fd5caa9546
[DependencyInjection] also check references of inlined services
2011-04-15 08:47:28 +02:00
Johannes Schmitt
ff41541d45
[DependencyInjection] removed pass time
2011-04-15 08:19:28 +02:00
Johannes Schmitt
6d7a9d752d
[DependencyInjection] adds emulation of "exception-on-invalid-reference" behavior
...
This pass requires that all of references are valid at the end of
the compilation process.
2011-04-15 00:55:18 +02:00
Johannes M. Schmitt
1992c3b96d
[DependencyInjection] fixes a bug which might have occurred when using property injection under certain circumstances
2011-04-14 21:29:46 +02:00
Johannes M. Schmitt
75ac0f5dc3
[DependencyInjection] fixed method name
2011-04-14 21:07:16 +02:00
Johannes M. Schmitt
6ea9fb16c7
[DependencyInjection] refactored code a bit, added some more logging messages
2011-04-14 21:01:37 +02:00
Johannes Schmitt
2397bcbe94
[DependencyInjection] better logging
2011-04-13 00:51:32 +02:00
Lukas Kahwe Smith
a4b04c4add
use synthetic services instead of special exceptions
2011-04-12 10:07:46 +02:00
Miha Vrhovnik
25e4193294
removed unused variable
2011-03-21 11:34:06 +01:00
Johannes M. Schmitt
98216a9af2
[DependencyInjection] refactored some more exceptions
2011-03-14 21:14:49 +01:00
Johannes M. Schmitt
e624e27675
[DependencyInjection] refactored some exceptions
2011-03-13 20:35:15 +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
Amal Raghav
517735e581
fix for ignoring abstract definition
2011-03-11 10:36:48 +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
Kris Wallsmith
bf0553c23a
[DependencyInjection] extensions should only load if called during configuration
2011-03-03 13:53:29 +01: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
Fabien Potencier
62e3053769
refactored previous commit, fixed tests
...
How to upgrade?
For XML configuration files:
* All extensions should now use the config tag (this is just a convention as
the YAML configurations files do not use it anymore):
* The previous change means that the doctrine and security bundles now are
wrapped under a main "config" tag:
<doctrine:config>
<doctrine:orm />
<doctrine:dbal />
</doctrine:config>
<security:config>
<security:acl />
...
</security:config>
For YAML configuration files:
* The main keys have been renamed as follows:
* assetic:config -> assetic
* app:config -> framework
* webprofiler:config -> web_profiler
* doctrine_odm.mongodb -> doctrine_mongo_db
* doctrine:orm -> doctrine: { orm: ... }
* doctrine:dbal -> doctrine: { dbal: ... }
* security:config -> security
* security:acl -> security: { acl: ... }
* twig.config -> twig
* zend.config -> zend
2011-02-15 22:22:28 +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
Tim Nagel
7173764dc1
[Dependency Injection] PHPDoc
2011-02-14 11:16:04 +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
Lukas Kahwe Smith
dd71501f54
some fixes by just "blindly" trying to make phpStorm code analysis happier
2011-02-04 19:30:28 +01:00
Johannes Schmitt
803dd58002
add definition inheritance support
2011-01-28 09:12:29 +01:00
Johannes Schmitt
f29a5f74a1
made the DI config validation more strict to catch errors early
2011-01-24 21:15:48 +01:00
Bulat Shakirzyanov
04e16e433d
[DependencyInjection] fixed ResolveInterfaceInjectorsPass, as services might not have a class defined due to a scope (e.g. 'request')
2011-01-24 17:55:09 +01:00
Fabien Potencier
4909987e23
[DependencyInjection] fixed strict flag propagation to aliases
2011-01-22 16:05:51 +01:00
Fabien Potencier
959438ee81
[DependencyInjection] fixed CS + tweaked error messages
2011-01-22 15:35:59 +01:00
Johannes M. Schmitt
1d5b6ed908
adds scope to the DI container
2011-01-22 15:20:50 +01:00
Johannes M. Schmitt
8d19136a55
refactors extensions to call XXXLoad only once with all config sections
2011-01-21 17:04:18 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Fabien Potencier
b7d2528384
added a way for any extension to add classes to the class cache
2011-01-16 11:32:17 +01:00
Fabien Potencier
612dce873b
[DependencyInjection] added the possibility to pass the type of compiler pass in ContainerBuilder::addCompilerPAss
2011-01-16 10:20:13 +01:00
Johannes Schmitt
f1b7bc1fe9
some refactorings/improvements
2011-01-15 21:07:35 +01:00
Victor Berchet
0bc6d814c3
[DI Compiler] Make processArguments() process arguments only
2011-01-11 20:29:44 +01:00
Johannes Schmitt
f1e41a9671
[DependencyInjection] made some improvments to the container compiler
...
- inline private services which are references multiple times, but where all references originate from the same definition
- bug fix for non-shared services which were considered shared within the scope in which they were inlined
2011-01-09 19:58:51 +01:00
Johannes Schmitt
d1a2a65d19
[DependencyInjection] performance improvement, better analysis tools
2011-01-09 19:58:42 +01:00
Johannes Schmitt
e85546ef7d
[DependencyInjection] made some improvments to the container compiler
...
- added generic repeated pass
- better optimization of services
- started adding some integration tests
2011-01-09 19:58:39 +01:00
Johannes Schmitt
3785a99b94
adds visibility to aliases
2011-01-07 15:58:48 +01:00
Johannes M. Schmitt
c5ef113b18
DI container optimization
2011-01-05 15:41:11 +01:00
Fabien Potencier
5c73619d80
[DependencyInjection] optimized previous commit
2010-12-31 09:15:36 +01:00
Lukas Kahwe Smith
c886d88bf3
[DependencyInjection] force loading of class file when resolving interface injections
2010-12-31 09:12:09 +01:00
Johannes Schmitt
db5e180d37
tweaked DI container
2010-12-30 15:59:52 +01:00
Johannes Schmitt
a2105d44aa
slight compiler refactoring (RFC)
2010-12-20 20:11:13 +01:00