digitalkaoz
9441c46bb6
[DependencyInjection] PhpDumper, fixes #2730
2012-01-06 21:20:08 +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
ec7eec5f35
[DependencyInjection] fixed espacing issue ( close #2819 )
2011-12-13 15:38:10 +01:00
Fabien Potencier
e3421a0b1d
[DoctrineBridge] fixed some CS
2011-12-13 10:22:12 +01:00
Jeremy Mikola
2334596d2b
[DependencyInjection] Use component's SPL classes in dumped service container
2011-12-05 10:04:50 -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
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
Fabien Potencier
ac5b8a4c37
merged 2.0
2011-10-26 14:29:19 +02: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
Helmer Aaviksoo
c4226bb6dc
Removed redundant "@return void"-s
2011-10-07 11:15:35 +03:00
Fabien Potencier
98abc8ed05
[DependencyInjection] changed the default YAML indentation to 4 spaces instead of 2
2011-09-23 08:05:09 +02:00
Fabien Potencier
97cb35b47a
[DependencyInjection] tagged the public @api
2011-07-20 10:50:27 +02:00
Johannes Schmitt
2d3051f9cc
tabs -> spaces
2011-07-16 16:13:26 +02:00
Johannes Schmitt
d0b056cce9
fixes a bug where getParameterBag() always returns null
2011-07-16 15:52:02 +02:00
Fabien Potencier
c3bb214e94
[DependencyInjection] removed injection for protected and private properties
2011-06-27 08:28:54 +02:00
Pascal Borreli
404c452c0b
[Various] Phpdoc & typos
2011-06-04 15:30:56 +00:00
Pascal Borreli
824e48efa7
[Various] Fixed phpdoc
2011-05-29 23:33:36 +00:00
Fabien Potencier
ce79fa9ba2
[DependencyInjection] fixed typo
2011-05-26 08:22:16 +02:00
Fabien Potencier
456eb53eb8
[DependencyInjection] renamed CircularReferenceException to ServiceCircularReferenceException
2011-05-25 09:48:49 +02:00
Fabien Potencier
e46e53daa0
Merge remote branch 'stof/graphviz'
...
* stof/graphviz:
[DependencyInjection] Fixed a property visibility in GraphvizDumper and removed a useless instanciation in the test
2011-05-14 17:23:50 +02:00
Fabien Potencier
0b367b9489
[DependencyInjection] tweaked error messages
2011-05-13 12:52:44 +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
0b165e13b2
[DependencyInjection] added public attribute when dumping a container to XML
2011-05-01 17:21:19 +02:00
Eriksen Costa
164ce5210d
capitalized 'boolean'
2011-04-27 02:35:10 -03: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
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
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
max
e2542962df
reinitialize array so arguments dont stack up
2011-03-15 12:08:13 -07:00
Johannes M. Schmitt
98216a9af2
[DependencyInjection] refactored some more exceptions
2011-03-14 21:14:49 +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
Johannes M. Schmitt
d9848f38ac
[DependencyInjection] added some tests
2011-03-10 15:31:00 +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
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
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
Fabien Potencier
b6f400a2bc
[DependencyInjection] made an optimization on dumped DIC
...
When dumping a Container, and if it is frozen, we use a plain
PHP array for parameters instead of a ParameterBag.
2011-02-04 00:17:51 +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
Ryan Weaver
17f9162b89
[Standards] Changing many instances of "boolean" to "Boolean".
2011-01-21 09:53:24 +01:00
Lukas Kahwe Smith
ddea635a51
fixes else -> } else
2011-01-19 07:20:23 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Fabien Potencier
c5f2ec8d2d
made DIC tags only available during "compilation"
...
Now that we have a compilation phase for the DIC, using tags after compilation
is not needed anymore.
Tags were introduced to allow several independant bundles to be able to
interact which each others (remember that each extension knows nothing about
the others).
But during the compilation phase, the container has been merged ans so, all
the information from all bundles are available. This is then the right place
to deal with tags. That way, less work is needed at runtime and the DIC class
in the cache is also much smaller.
For simple cases, it means that you need to process the tag in a compiler pass
and store the information you need in a DIC parameter (have a look at the
TranslatorPass for a very simple example).
So, the PHP dumper does not add tags to the dumped PHP class anymore (it does
not implements TaggedContainerInterface anymore). But tags are still available
on ContainerBuilder instances.
2011-01-17 11:40:04 +01:00
Martin Hason
6011073e7c
[DependencyInjection] fixed XmlDumper (corrected validity)
2011-01-14 18:16:11 +01:00
Fabien Potencier
ea6342413c
[DependencyInjection] fixed CS
2011-01-14 17:00:43 +01:00
Martin Hason
5ee48c4963
[DependencyInjection] fix XML entities in XmlDumper
2011-01-14 16:56:44 +01:00
Martin Hason
2a3d94a6d0
[DependencyInjection] added support for anonymous services in XmlDumper
2011-01-14 08:25:18 +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
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
Victor Berchet
b2476719f6
Container PHP dumper: optimize string dumping ('f'.'o'.'o' -> 'foo')
2010-12-21 11:19:42 +01:00
Fabien Potencier
9f5253e460
fixed typo
2010-12-14 07:49:55 +01:00
Bulat Shakirzyanov
ff9e9ac315
[DependencyInjection] fixed a typo in PhpDumper
2010-12-13 18:55:37 +01:00
Bulat Shakirzyanov
73331cf1c1
[DependencyInjection] Interface Injection implementation
2010-11-30 20:36:56 +01:00
pablodip
314d3d06ae
[DependencyInjection] format the tags in the findTaggedServiceIds method of the PhpDumper
2010-11-30 07:56:51 +01:00
Fabien Potencier
341178e869
[DependencyInjection] made some cosmetic changes to the PHP dumper output
2010-11-24 15:55:25 +01:00
Fabien Potencier
60bbb8f380
[DependencyInjection] optimized compiled containers
...
* removed the __call() method in Container: it means that now, there is only
one way to get a service: via the get() method;
* removed the $shared variable in the dumped Container classes (we now use
the $services variable from the parent class directly -- this is where we
have a performance improvement);
* optimized the PHP Dumper output.
2010-11-23 22:43:09 +01:00
Fabien Potencier
53dd4e39c7
[DependencyInjection] changed the YAML notation for optional services from @@ to @?
2010-11-15 10:00:59 +01:00
Fabien Potencier
efed6005cb
[DependencyInjection] fixed PHP dumper
...
In the dumped PHP class, we must use get() and not get*Service() methods to get services.
That's because all calls must be managed by get(). From the outside, you can call
get*Service() because as they are protected, they are caught by the __call() method;
which is not the case obviously when it is used internally.
If not, if you override a service with set(), this won't work when a service
depends on this one (the default one will still be used).
2010-11-12 17:38:32 +01:00
Kris Wallsmith
f79e23ffb5
Removed all those spaces after @author that were bothering me so…
2010-10-18 16:55:41 +02:00
Artur Kotyrba
308e85a5a7
Removed methods which implemented interfaces by throwing \LogicException('You must override...').
2010-10-17 07:54:18 +02:00
pborreli
86cc6a11d9
[Component] Fixed some spelling typos
2010-10-17 07:51:50 +02:00
Kris Wallsmith
ef4f61bb9f
[DependencyInjection] Added TaggedContainerInterface to signature of generated container classes
2010-10-16 08:32:07 +02:00
Fabien Potencier
35ee15d131
[DependencyInjection] tweaked an error message to ease debugging
2010-09-26 16:59:40 +02:00
Fabien Potencier
7be00aa34e
fixed previous commit
2010-09-03 16:18:04 +02:00
Fabien Potencier
4c17ce8e5e
changed calls to has() to use the new proxy method
2010-09-03 11:38:21 +02:00
Fabien Potencier
bf82cf42dd
renamed Symfony\Components to Symfony\Component
2010-08-20 23:09:55 +02:00