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